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 3, 2023
1 parent 38fbee4 commit 5c91188
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 5c91188

Please sign in to comment.