Skip to content

Commit

Permalink
Merge branch 'develop' into BLADE-161-account-management-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dusannosovic-ethernal authored Jun 20, 2024
2 parents bc0daea + 81f9898 commit ae95579
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions txpool/txpool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3908,10 +3908,13 @@ func TestBatchTx_SingleAccount(t *testing.T) {
go func() {
defer wg.Done()

ctx, cancelFn := context.WithTimeout(context.Background(), time.Second*15)
defer cancelFn()

for {
select {
case ev = <-subscription.subscriptionChannel:
case <-time.After(time.Second * 6):
case <-ctx.Done():
timeoutElapsed = true

return
Expand All @@ -3936,7 +3939,7 @@ func TestBatchTx_SingleAccount(t *testing.T) {
assert.Equal(t, defaultMaxAccountEnqueued, pool.Length())

// all transactions are promoted
break
return
}
}
}()
Expand Down

0 comments on commit ae95579

Please sign in to comment.