We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Timeout isn't working as expected if both stdout and stderr are redirected.
TTY::Command.new(printer: :quiet).run!('sleep 5', timeout: 1, [:out, :err] => '/dev/null')
The code above doesn't fail. It takes 5 seconds to run and ignores the timeout option set to 1 second.
The code above should raise an exception.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the problem
Timeout isn't working as expected if both stdout and stderr are redirected.
Steps to reproduce the problem
Actual behaviour
The code above doesn't fail. It takes 5 seconds to run and ignores the timeout option set to 1 second.
Expected behaviour
The code above should raise an exception.
Describe your environment
The text was updated successfully, but these errors were encountered: