-
-
Save anonymous/77ebf42fa77ed3ec843d2f50b4f6bab7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is my test, but even though @timeout_exception is working during running of the code, it's empty during the test. So how can I test if this variable is set? | |
Then(/^the output should be '(.*)'$/) do |expectedException| | |
expect(@timeout_exception).to eq(expectedException) | |
end | |
This is the output of the bundle exec cucumber run. | |
And the output should be 'Execution Timeout Error: This deployment has taken too long to run' # features/step_definitions/my_steps.rb:309 | |
expected: "Execution Timeout Error: This deployment has taken too long to run" | |
got: nil | |
(compared using ==) | |
(RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/my_steps.rb:310:in `/^the output should be '(.*)'$/' | |
features/timeout_lengthy_deploys.feature:25:in `And the output should be 'Execution Timeout Error: This deployment has taken too long to run'' | |
Failing Scenarios: | |
cucumber features/timeout_lengthy_deploys.feature:11 # Scenario: Normal deploy that times out because it takes too long |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment