mirror of
https://github.com/spf13/viper
synced 2024-11-04 20:27:02 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -1251,7 +1251,7 @@ func TestMergeConfigMap(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
assert := func(i int) {
|
assert := func(i int) {
|
||||||
large := v.GetInt("hello.largenum")
|
large := v.GetInt64("hello.largenum")
|
||||||
pop := v.GetInt("hello.pop")
|
pop := v.GetInt("hello.pop")
|
||||||
if large != 765432101234567 {
|
if large != 765432101234567 {
|
||||||
t.Fatal("Got large num:", large)
|
t.Fatal("Got large num:", large)
|
||||||
|
|
Loading…
Reference in a new issue