From e82a186fc04b450b15a10d5d2edd20f7b5ecccfa Mon Sep 17 00:00:00 2001 From: "Dr. Tobias Quathamer" Date: Wed, 26 Apr 2017 22:23:01 +0200 Subject: [PATCH] Remove tests which result in an overflow error on 32 bit architectures --- viper_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/viper_test.go b/viper_test.go index be11f3e..15966e4 100644 --- a/viper_test.go +++ b/viper_test.go @@ -1102,10 +1102,6 @@ func TestMergeConfig(t *testing.T) { t.Fatalf("pop != 37890, = %d", pop) } - if pop := v.GetInt("hello.lagrenum"); pop != 765432101234567 { - t.Fatalf("lagrenum != 765432101234567, = %d", pop) - } - if pop := v.GetInt32("hello.pop"); pop != int32(37890) { t.Fatalf("pop != 37890, = %d", pop) } @@ -1130,10 +1126,6 @@ func TestMergeConfig(t *testing.T) { t.Fatalf("pop != 45000, = %d", pop) } - if pop := v.GetInt("hello.lagrenum"); pop != 7654321001234567 { - t.Fatalf("lagrenum != 7654321001234567, = %d", pop) - } - if pop := v.GetInt32("hello.pop"); pop != int32(45000) { t.Fatalf("pop != 45000, = %d", pop) }