Skip to content

Commit

Permalink
demonstrate identical object is not necessary for test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
jjb committed Nov 7, 2023
1 parent a65e49c commit 0be3e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.handle_timeout(message)
begin
yield exc
rescue ExitException => e
raise new(message) if exc.equal?(e)
raise new(message) if exc.class == e.class
raise
end
end
Expand Down

0 comments on commit 0be3e8c

Please sign in to comment.