test(client): stabilize stream integration gate (#1)
This commit is contained in:
@@ -147,7 +147,12 @@ public sealed class RendezvousClientIntegrationTests
|
||||
{
|
||||
await using ClientTestHost host = await ClientTestHost.StartAsync();
|
||||
RendezvousPublisherClient publisher = new(host.HttpClient);
|
||||
RendezvousSessionBrowserClient browser = new(host.HttpClient);
|
||||
RendezvousSessionBrowserClient browser = new(
|
||||
host.HttpClient,
|
||||
new RendezvousClientOptions
|
||||
{
|
||||
RequestTimeout = TimeSpan.FromSeconds(15),
|
||||
});
|
||||
PublishedSession session = AssertSuccess(await publisher.RegisterAsync(
|
||||
CreateRegistration(200),
|
||||
host.PublisherCredential));
|
||||
@@ -156,7 +161,7 @@ public sealed class RendezvousClientIntegrationTests
|
||||
BrowseSessionsResponse snapshot = AssertSuccess(await browser.BrowseAsync(request));
|
||||
Assert.False(string.IsNullOrWhiteSpace(snapshot.StreamCursor));
|
||||
|
||||
using CancellationTokenSource timeout = new(TimeSpan.FromSeconds(10));
|
||||
using CancellationTokenSource timeout = new(TimeSpan.FromSeconds(30));
|
||||
await using (IAsyncEnumerator<RendezvousClientResult<SessionStreamEvent>> invalid = browser
|
||||
.StreamAsync(request, CorruptCursor(snapshot.StreamCursor), timeout.Token)
|
||||
.GetAsyncEnumerator(timeout.Token))
|
||||
|
||||
Reference in New Issue
Block a user