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

View File

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