Skip to content

Commit 0423cb3

Browse files
Fix timing issue waiting for two messages
1 parent 1547216 commit 0423cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

selenium/test/authnz-msg-protocols/amqp10.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Having AMQP 1.0 protocol enabled and the following auth_backends: ' +
6161
await untilConnectionEstablished
6262
var untilMessageReceived = new Promise((resolve, reject) => {
6363
onAmqp('message', function(context) {
64-
resolve()
64+
if (receivedAmqpMessageCount == 2) resolve()
6565
})
6666
})
6767
amqp.sender.send({body:'second message'})

0 commit comments

Comments
 (0)