tests: fix validator tests

This commit is contained in:
Stavros
2026-07-14 00:42:41 +03:00
parent 0c1cc98fd3
commit 25b434a012
+3
View File
@@ -250,6 +250,9 @@ func TestDomainValidator_Validate(t *testing.T) {
description: "Non matching hostnames should fail", description: "Non matching hostnames should fail",
expected: "example.com", expected: "example.com",
actual: "foo.com", actual: "foo.com",
errorFunc: func(t *testing.T, e error) {
assert.ErrorContains(t, e, "expected hostname example.com, got foo.com")
},
}, },
} }