Test: race condition in checking remote stream.
This commit is contained in:
Родитель
72b1986958
Коммит
3ce9ef7a15
|
@ -977,8 +977,12 @@ namespace Test.Amqp
|
|||
catch (AmqpException) { }
|
||||
Assert.IsTrue(transport != null, "transport is null");
|
||||
try
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
transport.WriteByte(1);
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
Assert.IsTrue(false, "transport not disposed 1.");
|
||||
}
|
||||
catch (ObjectDisposedException) { }
|
||||
|
@ -996,8 +1000,12 @@ namespace Test.Amqp
|
|||
catch (AmqpException) { }
|
||||
Assert.IsTrue(transport != null, "transport is null 2");
|
||||
try
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
transport.WriteByte(2);
|
||||
Thread.Sleep(100);
|
||||
}
|
||||
Assert.IsTrue(false, "transport not disposed 2.");
|
||||
}
|
||||
catch (ObjectDisposedException) { }
|
||||
|
|
Загрузка…
Ссылка в новой задаче