Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

killed stub would not record execution #16

Open
toote opened this issue Jul 1, 2023 · 0 comments
Open

killed stub would not record execution #16

toote opened this issue Jul 1, 2023 · 0 comments
Labels

Comments

@toote
Copy link

toote commented Jul 1, 2023

Unstubbing fails when running something like the following:

stub $COMMAND "sleep 60 & wait \$!"
run $COMMAND &

kill $!

unstub $COMMAND

The reason stubbing fails is because as the command itself was killed when running, there was no accounting done on the call. Obviously, doing this is not a common scenario (nor killing commands in scripts just like that).

Context: found (same as #14) when testing concurrent executions of uploads in the BuildKite test-collector plugin

@toote toote added the bug label Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant