Use GetInt64 for largenum in viper_test.go

to prevent overflow error on 32-bit platforms.

Fixes #704
This commit is contained in:
Anthony Fok 2019-05-24 11:53:49 -06:00
parent 93066f92c6
commit 2bd2732789
No known key found for this signature in database
GPG key ID: EA2500B412C59ACF

View file

@ -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)