mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-12 21:06:52 +02:00
[client] Fix dns handler chain test (#3307)
This commit is contained in:
parent
488b697479
commit
44407a158a
@ -795,7 +795,7 @@ func TestHandlerChain_DomainSpecificityOrdering(t *testing.T) {
|
|||||||
if op.action == "add" {
|
if op.action == "add" {
|
||||||
handler := &nbdns.MockSubdomainHandler{Subdomains: op.subdomain}
|
handler := &nbdns.MockSubdomainHandler{Subdomains: op.subdomain}
|
||||||
handlers[op.pattern] = handler
|
handlers[op.pattern] = handler
|
||||||
chain.AddHandler(op.pattern, handler, op.priority, nil)
|
chain.AddHandler(op.pattern, handler, op.priority)
|
||||||
} else {
|
} else {
|
||||||
chain.RemoveHandler(op.pattern, op.priority)
|
chain.RemoveHandler(op.pattern, op.priority)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user