mirror of https://github.com/spf13/viper.git
Use GetInt64 for largenum in viper_test.go
to prevent overflow error on 32-bit platforms. Fixes #704
This commit is contained in:
parent
93066f92c6
commit
2bd2732789
|
@ -1251,7 +1251,7 @@ func TestMergeConfigMap(t *testing.T) {
|
|||
}
|
||||
|
||||
assert := func(i int) {
|
||||
large := v.GetInt("hello.largenum")
|
||||
large := v.GetInt64("hello.largenum")
|
||||
pop := v.GetInt("hello.pop")
|
||||
if large != 765432101234567 {
|
||||
t.Fatal("Got large num:", large)
|
||||
|
|
Loading…
Reference in New Issue