Skip to content

Commit

Permalink
Fix additional gRPC test assertions on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que committed Jan 15, 2025
1 parent 942f5c9 commit 8a2a62a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public async Task CallWithDeadline()
{
await call.ResponseStream.MoveNext();
});
Assert.Equal(StatusCode.DeadlineExceeded, ex.StatusCode);
Assert.True(ex.StatusCode == StatusCode.DeadlineExceeded || ex.StatusCode == StatusCode.Cancelled, "Expected StatusCode to be DeadlineExceeded or Cancelled.");
Assert.True(service.CancellationTokenRaisedException, "Expected server to see cancellation.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public async Task CallWithDeadline()
{
await call.ResponseStream.MoveNext();
});
Assert.Equal(StatusCode.DeadlineExceeded, ex.StatusCode);
Assert.True(ex.StatusCode == StatusCode.DeadlineExceeded || ex.StatusCode == StatusCode.Cancelled, "Expected StatusCode to be DeadlineExceeded or Cancelled.");
Assert.True(service.CancellationTokenRaisedException, "Expected server to see cancellation.");
}

Expand Down

0 comments on commit 8a2a62a

Please sign in to comment.