test(listener): cover ListenerQUIC::Port()
ShouldReportListenerPortQUIC: a listener on port 0 reports a nonzero port and a client reaches it there; a second listener on port 0 gets a different port; a fixed port reads back as itself; the port is still there after Stop() and moves with the listener. It binds no fixed port of its own: the fixed-port check reuses the ephemeral port a listener just let go of. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7dace8bb03
commit
3457ff08ce
2 changed files with 108 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ extern "C" Configuration CrafterBuildProject(std::span<const std::string_view> a
|
|||
cfg.AddTest("ShouldSendRecieveQUICDatagram").Dependencies({ &cfg });
|
||||
cfg.AddTest("ShouldSendRecieveQUICStream").Dependencies({ &cfg });
|
||||
cfg.AddTest("ShouldReportClosedQUICStream").Dependencies({ &cfg });
|
||||
cfg.AddTest("ShouldReportListenerPortQUIC").Dependencies({ &cfg });
|
||||
cfg.AddTest("ShouldSurviveConnectionChurn").Dependencies({ &cfg });
|
||||
} else {
|
||||
// Only a --no-quic build can show that msquic stayed out.
|
||||
|
|
|
|||
Loading…
Reference in a new issue