Skip to content

Commit

Permalink
Fixup chooseProtocol test.
Browse files Browse the repository at this point in the history
Verified this works all the way back to Go 1.13.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ committed Jan 24, 2022
1 parent 8211bed commit 12de3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prober/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestChooseProtocol(t *testing.T) {
registry = prometheus.NewPedanticRegistry()

ip, _, err = chooseProtocol(ctx, "ip4", false, "ipv6.google.com", registry, logger)
if err != nil && err.Error() != "address ipv6.google.com: no suitable address found" {
if err != nil && !err.(*net.DNSError).IsNotFound {
t.Error(err)
} else if err == nil {
t.Error("should set error")
Expand Down

0 comments on commit 12de3f0

Please sign in to comment.