fix(test): prevent data race in TestReadme (#7769)

Replace "reload 2s" with "quic" in quicReloadCorefile to avoid
spawning a background goroutine that reads dnsserver.Port while
TestReadme modifies it. The test TestQUICReloadDoesNotPanic still
verifies the QUIC reload panic fix via explicit inst.Restart() call.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
Ville Vesilehto
2025-12-16 05:31:19 +02:00
committed by GitHub
parent 05efeb0a7e
commit 4fd014a1e1

View File

@@ -26,7 +26,7 @@ var quicCorefile = `quic://.:0 {
var quicReloadCorefile = `quic://.:0 {
tls ../plugin/tls/test_cert.pem ../plugin/tls/test_key.pem ../plugin/tls/test_ca.pem
whoami
reload 2s
quic
}`
// Corefile with custom stream limits