Tweak this test as it seems to be running into some weird undefined behavior.

This commit is contained in:
Azareal 2019-10-06 10:43:51 +10:00
parent 5705252029
commit 592f5614ea

View File

@ -1239,9 +1239,8 @@ func TestPluginManager(t *testing.T) {
} }
func TestPhrases(t *testing.T) { func TestPhrases(t *testing.T) {
getPhrase := phrases.GetGlobalPermPhrase
tp := func(name string, expects string) { 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("BanUsers","Can ban users")
tp("NoSuchPerm","{lang.perms[NoSuchPerm]}") tp("NoSuchPerm","{lang.perms[NoSuchPerm]}")