Merge PR #1936: types: Reduce size of TestImmutability<Arith\U>Int tests

Currently they take ~1 minute on circle CI. There isn't a significant reason
for this to delay all our tests. This commit reduces the time spent on these
tests by a factor of 20.
This commit is contained in:
Dev Ojha 2018-08-08 05:05:20 -05:00 committed by Christopher Goes
parent 46382994a3
commit 10199c9159
1 changed files with 4 additions and 4 deletions

View File

@ -345,7 +345,7 @@ func intarithraw(uifn func(Int, int64) Int, bifn func(*big.Int, *big.Int, *big.I
}
func TestImmutabilityArithInt(t *testing.T) {
size := 1000
size := 500
ops := []intop{
intarith(Int.Add, (*big.Int).Add),
@ -358,7 +358,7 @@ func TestImmutabilityArithInt(t *testing.T) {
intarithraw(Int.DivRaw, (*big.Int).Div),
}
for i := 0; i < 1000; i++ {
for i := 0; i < 100; i++ {
uis := make([]Int, size)
bis := make([]*big.Int, size)
@ -443,7 +443,7 @@ func uintarithraw(uifn func(Uint, uint64) Uint, bifn func(*big.Int, *big.Int, *b
}
func TestImmutabilityArithUint(t *testing.T) {
size := 1000
size := 500
ops := []uintop{
uintarith(Uint.Add, (*big.Int).Add, false),
@ -456,7 +456,7 @@ func TestImmutabilityArithUint(t *testing.T) {
uintarithraw(Uint.DivRaw, (*big.Int).Div, false),
}
for i := 0; i < 1000; i++ {
for i := 0; i < 100; i++ {
uis := make([]Uint, size)
bis := make([]*big.Int, size)