itaysk / kubectl-neat

Clean up Kubernetes yaml and json output to make it readable
Apache License 2.0
1.68k stars 100 forks source link

Fix test for Go 1.16 #61

Closed ml- closed 3 years ago

ml- commented 3 years ago

TestRootCmd fails because of os.PathError changes introduced in Go 1.16. Although it is still the expected type (alias to fs.PathError), %T in Sprintf prints something else.

cmd_test.go:115: error assertion: have: &fs.PathError{Op:"open", Path:"/nogood", Err:0x2}
    test case: {[-f /nogood]  0x55adcb95a800 }
itaysk commented 3 years ago

thank you @ml-