fix some typos in runconfig\opts\envfile_test.go
Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
parent
b532e15036
commit
58da4c1bab
1 changed files with 2 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue