From 40fd3ca7545c91ba0d957957754466099f1e46d5 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 11 Aug 2020 17:53:55 +0100 Subject: [PATCH] Fix test output --- currentstateserver/acls/acls_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/currentstateserver/acls/acls_test.go b/currentstateserver/acls/acls_test.go index ed575cd58..9fb6a5581 100644 --- a/currentstateserver/acls/acls_test.go +++ b/currentstateserver/acls/acls_test.go @@ -46,7 +46,7 @@ func TestOpenACLsWithBlacklist(t *testing.T) { t.Fatal("Expected 1.2.3.4 to be allowed but wasn't") } if acls.IsServerBannedFromRoom("1.2.3.4:2345", roomID) { - t.Fatal("Expected 1.2.3.4 to be allowed but wasn't") + t.Fatal("Expected 1.2.3.4:2345 to be allowed but wasn't") } if !acls.IsServerBannedFromRoom("foo.com", roomID) { t.Fatal("Expected foo.com to be banned but wasn't") @@ -58,7 +58,7 @@ func TestOpenACLsWithBlacklist(t *testing.T) { t.Fatal("Expected bar.com to be allowed but wasn't") } if acls.IsServerBannedFromRoom("bar.com:4567", roomID) { - t.Fatal("Expected bar.com to be allowed but wasn't") + t.Fatal("Expected bar.com:4567 to be allowed but wasn't") } } @@ -85,7 +85,7 @@ func TestDefaultACLsWithWhitelist(t *testing.T) { t.Fatal("Expected 1.2.3.4 to be banned but wasn't") } if !acls.IsServerBannedFromRoom("1.2.3.4:2345", roomID) { - t.Fatal("Expected 1.2.3.4 to be banned but wasn't") + t.Fatal("Expected 1.2.3.4:2345 to be banned but wasn't") } if acls.IsServerBannedFromRoom("foo.com", roomID) { t.Fatal("Expected foo.com to be allowed but wasn't") @@ -100,6 +100,6 @@ func TestDefaultACLsWithWhitelist(t *testing.T) { t.Fatal("Expected baz.com to be allowed but wasn't") } if !acls.IsServerBannedFromRoom("qux.com:4567", roomID) { - t.Fatal("Expected baz.com to be allowed but wasn't") + t.Fatal("Expected qux.com:4567 to be allowed but wasn't") } }