Skip to content

Commit

Permalink
rpcsrv: fix TestSubClientWaitWithMissedEvent
Browse files Browse the repository at this point in the history
Increase waiting interval for subscriptions awaiting up to 2 seconds.
Failing is caused by slow subscriptions.

Close #2958

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
  • Loading branch information
AliceInHunterland committed Mar 28, 2024
1 parent 86f16bb commit 89b62e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/rpcsrv/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ func testSubClientWaitWithMissedEvent(t *testing.T, local bool) {
rpcSrv.subsLock.Lock()
defer rpcSrv.subsLock.Unlock()
return len(rpcSrv.subscribers) == 1
}, time.Second, 100*time.Millisecond)
}, 2*time.Second, 100*time.Millisecond)

rpcSrv.subsLock.Lock()
// Suppress normal event delivery.
Expand Down

0 comments on commit 89b62e3

Please sign in to comment.