Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
GoliathLabs committed Nov 30, 2024
1 parent 986af15 commit afc179f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/dnsproxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,4 @@ func TestDNSProxy_Lookup(t *testing.T) {
t.Fatal("expected response, got nil")
}
})

t.Run("Cache miss", func(t *testing.T) {
msg := new(dns.Msg)
msg.SetQuestion("example.com.", dns.TypeA)

resp, err := proxy.Lookup(msg)
if err == nil {
t.Fatal("expected error, got nil")
}
if resp != nil {
t.Fatal("expected nil response, got non-nil")
}
})
}

0 comments on commit afc179f

Please sign in to comment.