From 592f5614eaffa1815ecffafe3e3918e22756cc5a Mon Sep 17 00:00:00 2001 From: Azareal Date: Sun, 6 Oct 2019 10:43:51 +1000 Subject: [PATCH] Tweak this test as it seems to be running into some weird undefined behavior. --- misc_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misc_test.go b/misc_test.go index d9eae399..f5ac67a7 100644 --- a/misc_test.go +++ b/misc_test.go @@ -1239,9 +1239,8 @@ func TestPluginManager(t *testing.T) { } func TestPhrases(t *testing.T) { - getPhrase := phrases.GetGlobalPermPhrase tp := func(name string, expects string) { - expect(t, getPhrase(name) == expects, "Not the expected phrase") + expect(t, phrases.GetGlobalPermPhrase(name) == expects, "Not the expected phrase") } tp("BanUsers","Can ban users") tp("NoSuchPerm","{lang.perms[NoSuchPerm]}")