Skip to content

Commit

Permalink
issue 2 txs
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Jun 6, 2024
1 parent 5e1b659 commit 3fb79c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/subscriptions/subscriptions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ func testHandlePendingTransactions(t *testing.T) {
transaction := createTx(t, repo, 1)
assert.NoError(t, txPool.AddLocal(transaction))

var mempoolNotif, wsNotif bool
var wsNotif bool
var msg []byte
for {
select {
case <-txChan:
mempoolNotif = true
//case <-txChan:
// mempoolNotif = true
case rcvMsg := <-wsChan:
msg = rcvMsg
wsNotif = true
case <-time.After(5 * time.Second):
t.Fatal("message not received in time")
}
if mempoolNotif && wsNotif {
if wsNotif {
break
}
}
Expand Down

0 comments on commit 3fb79c5

Please sign in to comment.