Skip to content

Commit

Permalink
chore: update to async sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
darshankabariya committed Jun 28, 2024
1 parent aada94b commit 9785d55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/wakunode_rest/test_rest_filter.nim
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ suite "Waku v2 Rest API - Filter V2":
postMsgResponse1.data == "OK"
len(messages1.data) == 1

# Pause execution for 2 minutes to test TimeCache functionality of service node
sleep(1000)
# Pause execution for 1 seconds to test TimeCache functionality of service node
await sleepAsync(1.seconds)

# second - message push from service node to subscriber client
let postMsgResponse2 = await restFilterTest.clientTwdServiceNode.relayPostMessagesV1(
Expand Down

0 comments on commit 9785d55

Please sign in to comment.