mirror of
https://github.com/spf13/viper
synced 2024-12-22 19:47:01 +00:00
Proper nil assert
This commit is contained in:
parent
7fe5335130
commit
cf1f00f226
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ func (s *stringValue) String() string {
|
|||
func TestBasics(t *testing.T) {
|
||||
SetConfigFile("/tmp/config.yaml")
|
||||
cf, err := v.getConfigFile()
|
||||
assert.Equal(t, nil, err)
|
||||
assert.Nil(t, err)
|
||||
assert.Equal(t, "/tmp/config.yaml", cf)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue