Skip to content

Commit

Permalink
Update recursion test to reflect change in behavior
Browse files Browse the repository at this point in the history
After changing recursion parameter, an additional layer of redirection
is needed in the test to trigger the failure mode.

Signed-off-by: Brandon Ewing <[email protected]>
  • Loading branch information
bewing committed Dec 18, 2024
1 parent 4381ae5 commit 2b763a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/utils/dns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ func TestValidDigButMaxRecursion(t *testing.T) {
}
NewFakeDNS(testSettings).
AddCNAMERecord("foo.cloud.example.com.", "bar.cloud.example.com.").
AddARecord("bar.cloud.example.com.", net.IPv4(10, 1, 0, 3)).
AddCNAMERecord("bar.cloud.example.com.", "baz.cloud.example.com.").
AddARecord("baz.cloud.example.com.", net.IPv4(10, 1, 0, 3)).
Start().
RunTestFunc(func() {
result, err := Dig("foo.cloud.example.com", 1, testServer)
Expand Down

0 comments on commit 2b763a5

Please sign in to comment.