Tweak this test as it seems to be running into some weird undefined behavior.
This commit is contained in:
parent
5705252029
commit
592f5614ea
|
@ -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]}")
|
||||
|
|
Loading…
Reference in New Issue