mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 06:23:10 +00:00
test_client: simple sleep to try avoid macos CI test failures (#2707)
This commit is contained in:
parent
5b1fbb26c4
commit
f0f94412a0
@ -74,13 +74,16 @@ suite "Store Client":
|
||||
|
||||
await allFutures(serverSwitch.start(), clientSwitch.start())
|
||||
|
||||
if serverSwitch.peerInfo.isNil():
|
||||
error "serverSwitch.peerInfo is nil"
|
||||
raise newException(CatchableError, "serverSwitch.peerInfo is nil")
|
||||
|
||||
if clientSwitch.peerInfo.isNil():
|
||||
error "clientSwitch.peerInfo is nil"
|
||||
raise newException(CatchableError, "clientSwitch.peerInfo is nil")
|
||||
## The following sleep is aimed to prevent macos failures in CI
|
||||
#[
|
||||
2024-05-16T13:24:45.5106200Z INF 2024-05-16 13:24:45.509+00:00 Stopping AutonatService topics="libp2p autonatservice" tid=53712 file=service.nim:203
|
||||
2024-05-16T13:24:45.5107960Z WRN 2024-05-16 13:24:45.509+00:00 service is already stopped topics="libp2p switch" tid=53712 file=switch.nim:86
|
||||
2024-05-16T13:24:45.5109010Z . (1.68s)
|
||||
2024-05-16T13:24:45.5109320Z Store Client (0.00s)
|
||||
2024-05-16T13:24:45.5109870Z SIGSEGV: Illegal storage access. (Attempt to read from nil?)
|
||||
2024-05-16T13:24:45.5111470Z stack trace: (most recent call last)
|
||||
]#
|
||||
await sleepAsync(500.millis)
|
||||
|
||||
serverPeerInfo = serverSwitch.peerInfo.toRemotePeerInfo()
|
||||
clientPeerInfo = clientSwitch.peerInfo.toRemotePeerInfo()
|
||||
|
||||
@ -54,13 +54,16 @@ suite "Store Client":
|
||||
|
||||
await allFutures(serverSwitch.start(), clientSwitch.start())
|
||||
|
||||
if serverSwitch.peerInfo.isNil():
|
||||
error "serverSwitch.peerInfo is nil"
|
||||
raise newException(CatchableError, "serverSwitch.peerInfo is nil")
|
||||
|
||||
if clientSwitch.peerInfo.isNil():
|
||||
error "clientSwitch.peerInfo is nil"
|
||||
raise newException(CatchableError, "clientSwitch.peerInfo is nil")
|
||||
## The following sleep is aimed to prevent macos failures in CI
|
||||
#[
|
||||
2024-05-16T13:24:45.5106200Z INF 2024-05-16 13:24:45.509+00:00 Stopping AutonatService topics="libp2p autonatservice" tid=53712 file=service.nim:203
|
||||
2024-05-16T13:24:45.5107960Z WRN 2024-05-16 13:24:45.509+00:00 service is already stopped topics="libp2p switch" tid=53712 file=switch.nim:86
|
||||
2024-05-16T13:24:45.5109010Z . (1.68s)
|
||||
2024-05-16T13:24:45.5109320Z Store Client (0.00s)
|
||||
2024-05-16T13:24:45.5109870Z SIGSEGV: Illegal storage access. (Attempt to read from nil?)
|
||||
2024-05-16T13:24:45.5111470Z stack trace: (most recent call last)
|
||||
]#
|
||||
await sleepAsync(500.millis)
|
||||
|
||||
serverPeerInfo = serverSwitch.peerInfo.toRemotePeerInfo()
|
||||
clientPeerInfo = clientSwitch.peerInfo.toRemotePeerInfo()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user