Skip to content

Commit

Permalink
test: add delay for CancellationToken to take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Nov 14, 2023
1 parent 59d2384 commit 8a60502
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public async Task ICommandExecute_UsesDefaultTokenSourceFactory()

Assert.True(command.IsExecuting);
cts.Cancel();
await Task.Delay(10);

Assert.False(command.IsExecuting);
}
Expand Down

0 comments on commit 8a60502

Please sign in to comment.