Skip to content

Commit

Permalink
Fix TestDealMining
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
  • Loading branch information
Jakub Sztandera committed Jun 23, 2020
1 parent 156a14e commit 2165728
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/test/mining.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ func TestDealMining(t *testing.T, b APIBuilder, blocktime time.Duration, carExpo
expect += <-wait

time.Sleep(blocktime)
if expect == 0 {
// null block
continue
}

for {
n := 0
Expand Down

0 comments on commit 2165728

Please sign in to comment.