Skip to content

Fix tests explicitly written to take a long time #117

@stephentoub

Description

@stephentoub

Some of the tests take obscene amounts of time, e.g.

await Task.Delay(10000, TestContext.Current.CancellationToken);
// reset counter
int counterAfterSubscribe = counter;
// unsubscribe
await client.UnsubscribeFromResourceAsync("test://static/resource/1", CancellationToken.None);
counter = 0;
// notifications happen every 5 seconds, so we wait for 10 seconds to ensure we would've gotten at least one notification
await Task.Delay(10000, TestContext.Current.CancellationToken);

These should be written to not require such long pauses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions