Skip to content

Commit

Permalink
Try to debug jruby failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Jul 3, 2024
1 parent cff76d5 commit d928264
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: bundle install --gemfile=gemfiles/${{ matrix.gemfile }}

- name: Test
run: BUNDLE_GEMFILE=gemfiles/${{ matrix.gemfile }} bundle exec rspec
run: BUNDLE_GEMFILE=gemfiles/${{ matrix.gemfile }} bundle exec rspec --format documentation

rubocop:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions spec/aws/rails/sqs_active_job/executor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,20 @@ module SqsActiveJob
expect(JobRunner).to receive(:new).at_least(:once).and_return(runner)
expect(msg).to receive(:delete).twice
allow(runner).to receive(:run) do
puts 'waiting!'
trigger.wait
puts 'done waiting!'
end
puts 'execute once'
executor.execute(msg) # first message runs
puts 'execute twice'
executor.execute(msg) # second message enters queue
expect(task_complete_event).to receive(:wait).at_least(:once) do
puts 'trigger set'
trigger.set # unblock the task
puts 'trigger reset'
end
puts 'execute thrice'
executor.execute(msg) # third message triggers wait
end
end
Expand Down

0 comments on commit d928264

Please sign in to comment.