Skip to content

Timeout not working as expected #490

Answered by sourcefrog
catbrained asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you probably have some other test (or code called from a test) that hangs when this mutation is inserted. If you look at the corresponding log inside mutants.out/logs it might be more clear which one it is -- or, as you already did, just insert the same change by hand.

I'm not sure what's happening with nextest reporting a timeout but not stopping. If you can make and share a small repo that shows the behavior then perhaps nextest devs would like to look too.

Can I change my test in some way to fix this? Preferably without copying the timeout logic into every single test.

I'm not sure. One pragmatic thing you can do is just exclude this mutant (or the function containing it), but t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@catbrained
Comment options

@sourcefrog
Comment options

Answer selected by catbrained
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants