fixing test lint

This commit is contained in:
Thad Craft 2018-10-24 15:04:05 -05:00
parent a43c64383c
commit fac49695a2
No known key found for this signature in database
GPG Key ID: DE50A1E7BB35F37E

View File

@ -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()