We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3848436 commit 341c89cCopy full SHA for 341c89c
projects/client/Unit/src/unit/TestConcurrentAccessWithSharedConnection.cs
@@ -76,5 +76,26 @@ public void TestConcurrentChannelOpenWithPublishing()
76
77
Assert.IsTrue(latch.Wait(TimeSpan.FromSeconds(90)));
78
}
79
+
80
+ [Test]
81
+ public void TestConcurrentChannelOpenCloseLoop()
82
+ {
83
+ var n = 32;
84
+ var latch = new CountdownEvent(n);
85
+ foreach (var i in Enumerable.Range(0, n))
86
87
+ var t = new Thread(() => {
88
+ foreach (var j in Enumerable.Range(0, 100))
89
90
+ var ch = Conn.CreateModel();
91
+ ch.Close();
92
+ }
93
+ latch.Signal();
94
+ });
95
+ t.Start();
96
97
98
+ Assert.IsTrue(latch.Wait(TimeSpan.FromSeconds(90)));
99
100
101
0 commit comments