[client] Fix dns handler chain test (#3307)

This commit is contained in:
Viktor Liu 2025-02-11 12:42:04 +01:00 committed by GitHub
parent 488b697479
commit 44407a158a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -795,7 +795,7 @@ func TestHandlerChain_DomainSpecificityOrdering(t *testing.T) {
if op.action == "add" {
handler := &nbdns.MockSubdomainHandler{Subdomains: op.subdomain}
handlers[op.pattern] = handler
chain.AddHandler(op.pattern, handler, op.priority, nil)
chain.AddHandler(op.pattern, handler, op.priority)
} else {
chain.RemoveHandler(op.pattern, op.priority)
}