Skip to content

Commit 2bdd5a9

Browse files
committed
Simplify TestSetup
1 parent 6bd9b33 commit 2bdd5a9

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
using System.Threading;
21
using Microsoft.VisualStudio.TestTools.UnitTesting;
32

43
[assembly: Parallelize(Workers = 0, Scope = ExecutionScope.MethodLevel)]
5-
6-
[TestClass]
7-
public static class TestSetup
8-
{
9-
[AssemblyInitialize]
10-
public static void Initialize(TestContext context)
11-
{
12-
// MSTest parallelizes test methods on the threadpool, and many tests
13-
// also spawn background Task.Run loops (FetchLoop, watchdogs). Without
14-
// a warm pool, those continuations queue behind tests and a 5s
15-
// Completion timeout can fire before a 250ms FetchLoop iteration runs.
16-
ThreadPool.SetMinThreads(128, 128);
17-
}
18-
}

0 commit comments

Comments
 (0)