Skip to content

Commit 5d8efce

Browse files
Copilotdrewnoakes
andauthored
Fix ReceiveMessageWithTimeout flaky test: increase waitTime to 1500ms and subscription propagation delay to 500ms
Agent-Logs-Url: https://github.com/zeromq/netmq/sessions/2c095c5d-19b8-4a3b-8c5c-6c70a8c34cff Co-authored-by: drewnoakes <350947+drewnoakes@users.noreply.github.com>
1 parent 0afcbfa commit 5d8efce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/NetMQ.Tests/SocketTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public async Task ReceiveMessageWithTimeout()
9797
{
9898
var pubSync = new AutoResetEvent(false);
9999
var payload = new byte[300];
100-
const int waitTime = 500;
100+
const int waitTime = 1500;
101101
int port = 0;
102102

103103
var t1 = new Task(() =>
@@ -121,7 +121,7 @@ public async Task ReceiveMessageWithTimeout()
121121
{
122122
subSocket.Connect($"tcp://127.0.0.1:{port}");
123123
subSocket.Subscribe("");
124-
Thread.Sleep(100);
124+
Thread.Sleep(500);
125125
pubSync.Set();
126126

127127
NetMQMessage? msg = null;

0 commit comments

Comments
 (0)