Skip to content

Commit

Permalink
Update docs/site/docs/interaction/awaiting-async-state.md
Browse files Browse the repository at this point in the history
Co-authored-by: Egil Hansen <egil@assimilated.dk>
  • Loading branch information
linkdotnet and egil authored Aug 13, 2023
1 parent 7109471 commit f5e4b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/site/docs/interaction/awaiting-async-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ If the timeout is reached, a <xref:Bunit.Extensions.WaitForHelpers.WaitForFailed
## Debugging code that uses `WaitForState` ort `WaitForAssertion`

When debugging code that uses the `WaitForState()` or `WaitForAssertion()` methods, it can be helpful that the timeout is not just one second as it is by default. When `bUnit` detects that the debugger is attached (`Debugger.IsAttached`), it will automatically increase the timeout to `Timeout.InfiniteTimeSpan`. If this behaviour is not desired, the timeout can be controlled by passing a `TimeSpan` as the second argument to the `WaitForState()` or `WaitForAssertion()` methods, overriding this behaviour.
When `bUnit` detects that a debugger is attached (`Debugger.IsAttached`), it will automatically disable the timeout functionality of the "wait for" methods.

0 comments on commit f5e4b0b

Please sign in to comment.