Skip to content

Commit

Permalink
Merge PR cosmos#1936: types: Reduce size of TestImmutability<Arith\U>…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
ValarDragon authored and cwgoes committed Aug 8, 2018
1 parent 4638299 commit 10199c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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)

Expand Down Expand Up @@ -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),
Expand All @@ -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)

Expand Down

0 comments on commit 10199c9

Please sign in to comment.