Skip to content

Improve reconnect specs to cover all three bug fixes - #3

Open
doctorfred wants to merge 1 commit into
ccutrer:mainfrom
doctorfred:fix/reconnect-spec-improvements
Open

Improve reconnect specs to cover all three bug fixes#3
doctorfred wants to merge 1 commit into
ccutrer:mainfrom
doctorfred:fix/reconnect-spec-improvements

Conversation

@doctorfred

Copy link
Copy Markdown

Summary

Follow-up to #2 — rewrites the reconnect specs per your feedback:

  • Orphaned ack spec: Now uses real publish("test/topic", "payload", qos: 1) in a second thread instead of reaching into internal queue. Polls @acks for registration rather than sleeping.
  • New: reconnect_limit=nil spec: Verifies nil.zero? no longer crashes when reconnect_limit is nil (unlimited retries).
  • New: wake_up_pipe race spec: Verifies read_nonblock doesn't block when the pipe has already been drained by another thread.

706 examples, 0 failures, 97.9% line coverage.

@doctorfred
doctorfred force-pushed the fix/reconnect-spec-improvements branch 2 times, most recently from 5b0900a to 26950cf Compare April 13, 2026 19:51
Rewrite the reconnect specs per maintainer feedback:
- Test orphaned acks using real publish(qos: 1) in a thread instead of
  reaching into internal queue
- Add spec for reconnect_limit=nil (nil.zero? crash)
- Add spec for wake_up_pipe read_nonblock race condition

706 examples, 0 failures, 97.9% coverage.
@doctorfred
doctorfred force-pushed the fix/reconnect-spec-improvements branch from 26950cf to 9c30898 Compare April 13, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant