aboutsummaryrefslogtreecommitdiff
path: root/roomserver/acls/acls_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/acls/acls_test.go')
-rw-r--r--roomserver/acls/acls_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/roomserver/acls/acls_test.go b/roomserver/acls/acls_test.go
index 09920308..7fd20f11 100644
--- a/roomserver/acls/acls_test.go
+++ b/roomserver/acls/acls_test.go
@@ -29,11 +29,11 @@ func TestOpenACLsWithBlacklist(t *testing.T) {
roomID := "!test:test.com"
allowRegex, err := compileACLRegex("*")
if err != nil {
- t.Fatalf(err.Error())
+ t.Fatal(err)
}
denyRegex, err := compileACLRegex("foo.com")
if err != nil {
- t.Fatalf(err.Error())
+ t.Fatal(err)
}
acls := ServerACLs{
@@ -72,7 +72,7 @@ func TestDefaultACLsWithWhitelist(t *testing.T) {
roomID := "!test:test.com"
allowRegex, err := compileACLRegex("foo.com")
if err != nil {
- t.Fatalf(err.Error())
+ t.Fatal(err)
}
acls := ServerACLs{