Skip to content

Commit

Permalink
Change to Timeout::Error as signal
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Mar 8, 2024
1 parent bece63b commit d8a78d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/mutant/parallel/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def read_till_final
private

def timeout
@errors << Timeout
@errors << Timeout::Error
end

def advance_result
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/mutant/parallel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def status
expect(sink.status).to eql(
[
Mutant::Parallel::Response.new(
error: Timeout,
error: Timeout::Error,
job: Mutant::Parallel::Source::Job.new(index: 0, payload: 1),
log: '',
result: nil
Expand Down
6 changes: 3 additions & 3 deletions spec/unit/mutant/parallel/connection/reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def marshal_load
verify_events do
expect(apply).to eql(
Mutant::Parallel::Response.new(
error: Timeout,
error: Timeout::Error,
job: job,
log: '<log>',
result: nil
Expand Down Expand Up @@ -241,7 +241,7 @@ def marshal_load
verify_events do
expect(apply).to eql(
Mutant::Parallel::Response.new(
error: Timeout,
error: Timeout::Error,
job: job,
log: '',
result: nil
Expand All @@ -262,7 +262,7 @@ def marshal_load
verify_events do
expect(apply).to eql(
Mutant::Parallel::Response.new(
error: Timeout,
error: Timeout::Error,
job: job,
log: '',
result: nil
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/mutant/parallel/worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def new_deadline
context 'when processing jobs till error' do
let(:response_a) do
Mutant::Parallel::Response.new(
error: Timeout,
error: Timeout::Error,
job: 0,
log: 'log',
result: nil
Expand Down

0 comments on commit d8a78d1

Please sign in to comment.