Skip to content

Commit

Permalink
Wait longer
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdana committed Dec 6, 2023
1 parent 1d6f174 commit 087a007
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions spec/git_rubocop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def foo()
file('foo.rb').write(bad_rb)
file('bar.rb').write(bad_rb)
git_add('.')
run('gc Fail rubocop', exit_with: be_nonzero, wait: 5)
run('gc Fail rubocop', exit_with: be_nonzero, wait: 10)
run('git_rebasing') # paused rebase for fixing
file('foo.rb').write(good_rb)
file('bar.rb').write(good_rb)
run('grc', wait: 5) do |cmd|
run('grc', wait: 10) do |cmd|
expect(cmd).to have_output(stdout: end_with('(1/1) Stage this hunk [y,n,q,a,d,e,?]? '), wait: 10)

cmd.stdin.puts('y')
Expand Down Expand Up @@ -130,7 +130,7 @@ def foo()

# manually lint, TODO: remove this step
run('git_stash_only_untracked')
run('git_autolint_head', wait: 5)
run('git_autolint_head', wait: 10)
run('git_rebasing', exit_with: be_nonzero)
run('git stash pop')

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def warn(msg) # leftovers:allow
require 'simplecov' if ENV['COVERAGE']

require_relative 'speckly/rspec'
Speckly.default_max_wait_time = 5
Speckly.default_max_wait_time = 10
Speckly.default_command_prefix = []

Dir.glob(File.expand_path('support/**/*.rb', __dir__)).each do |file|
Expand Down

0 comments on commit 087a007

Please sign in to comment.