util/dnsname: fix test error message

Updates #17788

Signed-off-by: Fran Bull <fran@tailscale.com>
pull/17868/head
Fran Bull 3 weeks ago committed by franbull
parent f387b1010e
commit 37aa7e6935

@ -74,7 +74,7 @@ func TestFQDNTooLong(t *testing.T) {
}
got, err := ToFQDN(name)
if err != nil {
t.Fatalf("want: error to end with \"is too long to be a DNS name\", got: %v", err)
t.Fatalf("want: no error, got: %v", err)
}
if string(got) != name {
t.Fatalf("want: %s, got: %s", name, got)

Loading…
Cancel
Save