Skip to content

Commit 02e58ec

Browse files
committed
Fix test properly
1 parent 666ad69 commit 02e58ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/internal/dns/server_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,11 @@ func TestUpdateDNSServer(t *testing.T) {
285285
},
286286
},
287287
},
288-
expectedUpstreamMap: registeredHandlerMap{".": handlerWrapper{handler: &localResolver{}}},
288+
expectedUpstreamMap: registeredHandlerMap{generateDummyHandler(".", nameServers).id(): handlerWrapper{
289+
domain: ".",
290+
handler: dummyHandler,
291+
priority: PriorityMatchDomain,
292+
}},
289293
},
290294
{
291295
name: "Empty Config Should Succeed and Clean Maps",

0 commit comments

Comments
 (0)