We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9852674 commit 9950fd7Copy full SHA for 9950fd7
test/Grpc.Net.Client.Tests/Retry/HedgingCallTests.cs
@@ -333,7 +333,9 @@ public async Task AsyncUnaryCall_CancellationDuringBackoff_CanceledStatus()
333
var ex = await ExceptionAssert.ThrowsAsync<RpcException>(() => hedgingCall.GetResponseAsync()).DefaultTimeout();
334
Assert.AreEqual(StatusCode.Cancelled, ex.StatusCode);
335
Assert.AreEqual("Call canceled by the client.", ex.Status.Detail);
336
- Assert.IsNull(hedgingCall._ctsRegistration);
+
337
+ // There is a race between unregistering and GetResponseAsync returning.
338
+ await TestHelpers.AssertIsTrueRetryAsync(() => hedgingCall._ctsRegistration == null, "Hedge call CTS unregistered.");
339
}
340
341
[Test]
0 commit comments