Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-dydx committed May 9, 2024
1 parent 0fca9d6 commit b4bb6bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Benchmarks
on:
push:
branches:
- roy/*
- master
pull_request:

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Test
on:
push:
branches:
- roy/*
- master
pull_request:

Expand Down
4 changes: 2 additions & 2 deletions migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func TestPruning(t *testing.T) {
}

// Wait for pruning to finish
for i := 0; i < 200; i++ {
for i := 0; i < 100; i++ {
_, _, err := tree.SaveVersion()
require.NoError(t, err)
isLeacy, err := tree.ndb.hasLegacyVersion(int64(legacyVersion))
Expand All @@ -265,7 +265,7 @@ func TestPruning(t *testing.T) {
break
}
// Simulate the consensus state update
time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
}
// Reload the tree
tree = NewMutableTree(db, 0, false, log.NewNopLogger())
Expand Down

0 comments on commit b4bb6bd

Please sign in to comment.