mirror of
https://github.com/coredns/coredns.git
synced 2025-12-17 07:45:13 -05:00
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:
@@ -26,7 +26,7 @@ var quicCorefile = `quic://.:0 {
|
|||||||
var quicReloadCorefile = `quic://.:0 {
|
var quicReloadCorefile = `quic://.:0 {
|
||||||
tls ../plugin/tls/test_cert.pem ../plugin/tls/test_key.pem ../plugin/tls/test_ca.pem
|
tls ../plugin/tls/test_cert.pem ../plugin/tls/test_key.pem ../plugin/tls/test_ca.pem
|
||||||
whoami
|
whoami
|
||||||
reload 2s
|
quic
|
||||||
}`
|
}`
|
||||||
|
|
||||||
// Corefile with custom stream limits
|
// Corefile with custom stream limits
|
||||||
|
|||||||
Reference in New Issue
Block a user