fix some typos in runconfig\opts\envfile_test.go

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
lixiaobing10051267 2017-01-09 11:14:18 +08:00
parent b532e15036
commit 58da4c1bab

View file

@ -54,7 +54,7 @@ and_underscore=working too
}
if !reflect.DeepEqual(lines, expectedLines) {
t.Fatal("lines not equal to expected_lines")
t.Fatal("lines not equal to expectedLines")
}
}
@ -128,12 +128,11 @@ another invalid line`
defer os.Remove(tmpFile)
_, err := ParseEnvFile(tmpFile)
if err == nil {
t.Fatalf("Expected an ErrBadEnvVariable, got nothing")
}
if _, ok := err.(ErrBadEnvVariable); !ok {
t.Fatalf("Expected an ErrBadEnvvariable, got [%v]", err)
t.Fatalf("Expected an ErrBadEnvVariable, got [%v]", err)
}
expectedMessage := "poorly formatted environment: variable 'first line' has white spaces"
if err.Error() != expectedMessage {