Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created October 30, 2022 10:44
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 lizmat/8a77b851249e4d0740150cba9c7d9a09 to your computer and use it in GitHub Desktop.
Save lizmat/8a77b851249e4d0740150cba9c7d9a09 to your computer and use it in GitHub Desktop.
# Subtest: promise timeout yields correct error
1..3
Requested a 2 second timed out promise for 5 sec promise to 42
ok 1 - code dies
ok 2 - right exception type (X::Timeout)
ok 3 - .message matches /Timeout.*/
ok 1 - promise timeout yields correct error
Requested a 4 second timed out promise for
ok 2 - 2 second timed out promise didn't time out under 4 seconds
ok 3 - 2 second promise result is correct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment