fix: waku bridge test timing (#1429)

* fix: waku bridge test timing

* fix: shorten timing more
This commit is contained in:
Hanno Cornelius 2022-11-28 22:07:21 +02:00 committed by GitHub
parent 696bd6bd6b
commit 08cbe5216a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 23 deletions

View File

@ -140,12 +140,10 @@ procSuite "WakuBridge":
v2Node.subscribe(DefaultBridgeTopic, relayHandler)
await sleepAsync(250.millis)
# Test bridging from V2 to V1
await v2Node.publish(DefaultBridgeTopic, message)
await sleepAsync(250.millis)
await sleepAsync(1.seconds)
check:
# v1Node received message published by v2Node
@ -174,7 +172,7 @@ procSuite "WakuBridge":
await v2Node.publish(DefaultBridgeTopic, message)
await sleepAsync(250.millis)
await sleepAsync(1.seconds)
check:
# v1Node did not receive duplicate of previous message