diff --git a/commands_test.go b/commands_test.go index fec2151..f3032e7 100644 --- a/commands_test.go +++ b/commands_test.go @@ -847,7 +847,10 @@ c: func TestMergeCmd_Inplace(t *testing.T) { filename := writeTempYamlFile(readTempYamlFile("examples/data1.yaml")) - os.Chmod(filename, os.FileMode(int(0666))) + err := os.Chmod(filename, os.FileMode(int(0666))) + if err != nil { + t.Error(err) + } defer removeTempYamlFile(filename) cmd := getRootCommand()