Permalink
Browse files

Put the merge timeout cuke feature to sleep for 2 secs to ensure

it also passes on powerful machines...
  • Loading branch information...
1 parent f29a61b commit 4d9b91d3bd293b12245086433f4bfa7c50d98515 @colszowka committed May 10, 2012
Showing with 7 additions and 1 deletion.
  1. +2 −1 features/config_merge_timeout.feature
  2. +5 −0 features/step_definitions/simplecov_steps.rb
@@ -32,7 +32,8 @@ Feature:
Then the report should be based upon:
| Unit Tests |
- When I open the coverage report generated with `bundle exec rspec spec`
+ When I wait for 2 seconds
+ And I open the coverage report generated with `bundle exec rspec spec`
Then the report should be based upon:
| RSpec |
@@ -59,3 +59,8 @@
}
end
+# This is neccessary to ensure timing-dependant tests like the merge timeout
+# do not fail on powerful machines.
+When /^I wait for (\d+) seconds$/ do |seconds|
+ sleep seconds.to_i
+end

0 comments on commit 4d9b91d

Please sign in to comment.