Discard asserted probe-task return values without joining loops

This commit is contained in:
Joseph Doherty
2026-10-13 16:12:31 -04:00
parent 1bf8c614a9
commit 5310a7e07a
4 changed files with 5 additions and 5 deletions
@@ -31,7 +31,7 @@ public sealed class FocasReinitializeReleasesStateTests
// Positive control: the first state's probe loop is demonstrably running and holds a live client.
await WaitUntilAsync(() => factory.Clients.Count > 0 && factory.Clients[0].IsConnected);
var firstLoop = first.ProbeTask;
firstLoop.ShouldNotBeNull();
_ = firstLoop.ShouldNotBeNull();
firstLoop!.IsCompleted.ShouldBeFalse();
var firstClient = factory.Clients[0];
@@ -41,7 +41,7 @@ public sealed class FocasReinitializeReleasesStateTests
firstClient.DisposeCount.ShouldBeGreaterThanOrEqualTo(1);
firstClient.IsConnected.ShouldBeFalse();
drv.GetDeviceState(host).ShouldNotBeSameAs(first);
drv.GetDeviceState(host)!.ProbeTask.ShouldNotBeNull(); // the new state is running
_ = drv.GetDeviceState(host)!.ProbeTask.ShouldNotBeNull(); // the new state is running
await drv.ShutdownAsync(CancellationToken.None);
}