0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/spec/lib/final_destination
Gerhard Schlager 6b89982a91 FIX: Keep TCPServer.open(port) working with the Happy Eyeballs patch
The Happy Eyeballs patch prepends an `open` singleton method onto TCPSocket, and TCPServer inherits it because TCPServer < TCPSocket. With a fixed host/port signature, `TCPServer.open(port)` raised ArgumentError before `super` could run. That broke TemporaryDb#port_available? and, in turn, the migrations tooling's `disco check` plugin-manifest refresh. The patched `open` now takes *args and forwards the caller's arguments untouched to `super` for non-token hosts, so subclasses with looser signatures keep working.
2026-07-22 09:05:38 +02:00
..
connector_spec.rb
http_spec.rb FIX: Keep TCPServer.open(port) working with the Happy Eyeballs patch 2026-07-22 09:05:38 +02:00
resolver_spec.rb
ssrf_detector_spec.rb