Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created December 13, 2019 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/38a4e90ae7280ac58721015b7bd9052d to your computer and use it in GitHub Desktop.
Save guitarrapc/38a4e90ae7280ac58721015b7bd9052d to your computer and use it in GitHub Desktop.
[Fact(Timeout = 50)]
public async Task FactTimeout_TimeoutLessThanProcessingTime_ThrowTestTimeoutException()
{
Action act = () => Task.Delay(5000);
// Trigger the timeout by attempting something that will take too long
await act;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment