1
0
Fork 0
mirror of https://github.com/matrix-org/gomatrix synced 2025-05-15 20:13:22 +00:00

remove string comparison

This commit is contained in:
Gabriel Fioravante 2021-03-24 16:19:14 -04:00 committed by GitHub
parent 4617436885
commit 65ff039a4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ func TestFilterValidate(t *testing.T) {
// test validation fail
f.EventFormat = "unkown"
err = f.Validate()
if err == nil || err.Error() != "Bad event_format value. Must be one of [\"client\", \"federation\"]" {
if err == nil {
t.Fatalf("TestFilterValidate: Filter validation false positive, event_format: '%s'", f.EventFormat)
}
}