Add test on initialization of viper/remote

This test can detect errors with dependencies like #658.
This commit is contained in:
Alexander Voykov 2019-03-21 11:01:43 +03:00
parent 9e56dacc08
commit 0fab984867

13
remote/remote_test.go Normal file
View file

@ -0,0 +1,13 @@
package remote
import (
"testing"
"github.com/spf13/viper"
)
func Test_init(t *testing.T) {
if viper.RemoteConfig == nil {
t.Fatal("viper.RemoteConfig() is nil, want non nil")
}
}