From cf1f00f2260396ae69b626d7980c60f5e956a6c3 Mon Sep 17 00:00:00 2001 From: Vlad Didenko Date: Sat, 23 May 2015 20:27:16 -0500 Subject: [PATCH] Proper nil assert --- viper_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index befbc66..a03b14e 100644 --- a/viper_test.go +++ b/viper_test.go @@ -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) }