Skip to content

Commit

Permalink
fixing test_rest_store.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmer committed May 10, 2024
1 parent 855dc00 commit 907b4d6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/wakunode_rest/test_rest_store.nim
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 9], contentTopic = ContentTopic("c2"), ts = 9),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down Expand Up @@ -195,7 +195,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 09], ts = ts(90, timeOrigin)),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down Expand Up @@ -282,7 +282,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 9], contentTopic = ContentTopic("2"), ts = 9),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down Expand Up @@ -354,7 +354,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 9], contentTopic = ContentTopic("ct2"), ts = 9),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down Expand Up @@ -442,7 +442,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 9], contentTopic = ContentTopic("ct2"), ts = 9),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down Expand Up @@ -513,7 +513,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 9], contentTopic = ContentTopic("ct2"), ts = 9),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

# Sending no peer-store node address
response = await client.getStoreMessagesV3(
Expand Down Expand Up @@ -560,7 +560,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 9], contentTopic = ContentTopic("ct2"), ts = 9),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down Expand Up @@ -616,7 +616,7 @@ procSuite "Waku Rest API - Store v3":
let msg = fakeWakuMessage(
@[byte 0], contentTopic = ContentTopic("ct1"), ts = 0, meta = (@[byte 8])
)
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down Expand Up @@ -682,7 +682,7 @@ procSuite "Waku Rest API - Store v3":
fakeWakuMessage(@[byte 09], ts = ts(90, timeOrigin)),
]
for msg in msgList:
require (waitFor driver.put(DefaultPubsubTopic, msg)).isOk()
require (await driver.put(DefaultPubsubTopic, msg)).isOk()

let client = newRestHttpClient(initTAddress(restAddress, restPort))

Expand Down

0 comments on commit 907b4d6

Please sign in to comment.