fix a test

This commit is contained in:
Jan Tattermusch 2018-03-21 12:08:17 +01:00
parent 9b9807a48c
commit f6909b259f
1 changed files with 2 additions and 3 deletions

View File

@ -163,9 +163,8 @@ namespace Grpc.Core
if (handle.IsClosed)
{
// If channel has been already shutdown and handle was disposed, we would end up with
// an abandoned completion added to the completion registry. So we act as if the
// wait has timed out instead.
tcs.SetResult(false);
// an abandoned completion added to the completion registry. Instead, we make sure we fail early.
throw new ObjectDisposedException(nameof(handle), "Channel handle has already been disposed.");
}
else
{