Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 2a75bba

Browse files
committed
Avoid SS.Common Times ext method to fix CI build error
1 parent 88f8bce commit 2a75bba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Console.Tests/HashStressTest.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Generic;
23
using System.Threading;
34
using ServiceStack.Redis;
45
using ServiceStack.Redis.Generic;
@@ -57,7 +58,11 @@ public void Execute(string ipAddress, int noOfThreads = 64)
5758
Interlocked.Increment(ref running);
5859

5960
"Starting HashStressTest with {0} threads".Print(noOfThreads);
60-
var threads = noOfThreads.Times(i => new Thread(WorkerLoop));
61+
var threads = new List<Thread>();
62+
for (int i = 0; i < noOfThreads; i++)
63+
{
64+
threads.Add(new Thread(WorkerLoop));
65+
}
6166
threads.Each(t => t.Start());
6267

6368
"Press Enter to Stop...".Print();

0 commit comments

Comments
 (0)