Skip to content

Commit acd2949

Browse files
committed
Speed up tests
1 parent 7a28554 commit acd2949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nethermind/Nethermind.JsonRpc.Test/JsonRpcSocketsClientTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static async Task<int> CountNumberOfMessages(Socket socket, CancellationToken to
8383
ReceiveResult? result = await stream.ReceiveAsync(buffer);
8484

8585
// Imitate random delays
86-
if (Stopwatch.GetTimestamp() % 1001 == 0)
86+
if (Stopwatch.GetTimestamp() % 101 == 0)
8787
await Task.Delay(1);
8888

8989
if (result is not null && IsEndOfIpcMessage(result))
@@ -128,7 +128,7 @@ static async Task<int> CountNumberOfMessages(Socket socket, CancellationToken to
128128

129129
for (int i = 0; i < messageCount; i++)
130130
{
131-
using JsonRpcResult result = JsonRpcResult.Single(RandomSuccessResponse(1000, () => disposeCount++), default);
131+
using JsonRpcResult result = JsonRpcResult.Single(RandomSuccessResponse(100, () => disposeCount++), default);
132132
await client.SendJsonRpcResult(result);
133133
await Task.Delay(1);
134134
}

0 commit comments

Comments
 (0)