mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
Add test on initialization of viper/remote
This test can detect errors with dependencies like #658.
This commit is contained in:
parent
9e56dacc08
commit
0fab984867
1 changed files with 13 additions and 0 deletions
13
remote/remote_test.go
Normal file
13
remote/remote_test.go
Normal 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")
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue