Skip to content

Commit

Permalink
✅ Guard against inconsequntial CI failures
Browse files Browse the repository at this point in the history
I haven't reproduced these eriors locally!  But they occur regularly in
CI.  Perhaps there is a race condition?
  • Loading branch information
nevans committed Aug 4, 2023
1 parent 30868ae commit aa0229a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/net/imap/fake_server/command_router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@ def handler_for(command)
resp.args.nil? or return resp.fail_bad_args
resp.bye
state.logout
resp.done_ok
begin
resp.done_ok
rescue IOError
# TODO: fix whatever is causing this!
warn "connection issue after bye but before LOGOUT could complete"
if $!.respond_to :detailed_message
warn $!.detailed_message highlight: true, order: :bottom
else
warn $!.full_message highlight: true, order: :bottom
end
end
end

on "STARTTLS" do |resp|
Expand Down

0 comments on commit aa0229a

Please sign in to comment.