util/dnsname: fix test error message

Updates #17788

Signed-off-by: Fran Bull <fran@tailscale.com>
This commit is contained in:
Fran Bull
2025-11-12 08:16:51 -08:00
committed by franbull
parent f387b1010e
commit 37aa7e6935

View File

@@ -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)