diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2022-11-04 17:31:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 17:31:07 +0300 |
commit | ab1052aaa3c38a9638f887f79ecc0bedbff302ab (patch) | |
tree | 352eb9324649bffa6731f268157572d214498aa7 | |
parent | c3be4f3ddbb4a00b2c651d406a613b28c69a4dac (diff) | |
parent | e89f6cbc6e7ee5cc650d1106ba4176ae277aa0e9 (diff) |
Merge pull request #202 from mono/dev/lluis/fix-flaky-test
Try to fix flaky test
-rw-r--r-- | Test/UnitTests/TestMultithreading.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/UnitTests/TestMultithreading.cs b/Test/UnitTests/TestMultithreading.cs index 64a560a..6304372 100644 --- a/Test/UnitTests/TestMultithreading.cs +++ b/Test/UnitTests/TestMultithreading.cs @@ -67,6 +67,7 @@ namespace UnitTests var writers = AddinManager.GetExtensionObjects<IWriter> ("/SimpleApp/Writers"); testData.Counters [index] = writers.Length; } + testData.Counters[index] = 0; }); for (int n = 0; n < steps; n++) { @@ -87,6 +88,9 @@ namespace UnitTests ainfo1.Enabled = true; ainfo2.Enabled = true; } + + testData.Stopped = true; + testData.CheckCounters(0, 10000); } void LoadAll(IEnumerable<ExtensionNode> nodes) |