We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f8ba0 commit ab7cea5Copy full SHA for ab7cea5
Tests.App/Services/CredentialManagerTest.cs
@@ -317,7 +317,10 @@ public async Task SetDuringLoad(CancellationToken ct)
317
var loadTask = manager.LoadCredentials(ct);
318
// Then fully perform a set.
319
await manager.SetCredentials(TestServerUrl, TestApiToken, ct).WaitAsync(ct);
320
- // The load should have been cancelled.
321
- Assert.ThrowsAsync<TaskCanceledException>(() => loadTask);
+
+ // The load should complete with the new valid credentials
322
+ var result = await loadTask;
323
+ Assert.That(result.State, Is.EqualTo(CredentialState.Valid));
324
+ Assert.That(result.CoderUrl?.ToString(), Is.EqualTo(TestServerUrl));
325
}
326
0 commit comments