Skip to content

Commit 503fc2a

Browse files
committed
Merge branch '3.4.x'
2 parents 60c77cb + 8d725bf commit 503fc2a

File tree

1 file changed

+6
-1
lines changed
  • src/NHibernate.Test/NHSpecificTest/NH1908ThreadSafety

1 file changed

+6
-1
lines changed

src/NHibernate.Test/NHSpecificTest/NH1908ThreadSafety/Fixture.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.Linq;
34
using System.Threading;
45
using NUnit.Framework;
56

@@ -44,7 +45,11 @@ public void UsingFiltersIsThreadSafe()
4445
thread.Join();
4546
}
4647

47-
Assert.AreEqual(0, errors.Count);
48+
Console.WriteLine("Detected {0} errors in threads. Displaying the first three (if any):", errors.Count);
49+
foreach (var exception in errors.Take(3))
50+
Console.WriteLine(exception);
51+
52+
Assert.AreEqual(0, errors.Count, "number of threads with exceptions");
4853
}
4954

5055
private void ScenarioRunningWithMultiThreading()

0 commit comments

Comments
 (0)