Test: race condition in checking remote stream.

This commit is contained in:
xinchen 2020-06-17 10:49:26 -07:00
Родитель 72b1986958
Коммит 3ce9ef7a15
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -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) { }