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
1 changed files with 1 additions and 1 deletions

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