Skip to content

Commit

Permalink
fix some typos in runconfig\opts\envfile_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: lixiaobing10051267 <[email protected]>
  • Loading branch information
lixiaobing1 committed Jan 9, 2017
1 parent b532e15 commit 58da4c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runconfig/opts/envfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 58da4c1

Please sign in to comment.