diff --git a/v2/i18n/message_template_test.go b/v2/i18n/message_template_test.go index d920cd4d..d78577c0 100644 --- a/v2/i18n/message_template_test.go +++ b/v2/i18n/message_template_test.go @@ -10,13 +10,13 @@ import ( func TestMessageTemplate(t *testing.T) { mt := NewMessageTemplate(&Message{ID: "HelloWorld", Other: "Hello World"}) if mt.PluralTemplates[plural.Other].Src != "Hello World" { - panic(mt.PluralTemplates) + t.Fatal(mt.PluralTemplates) } } func TestNilMessageTemplate(t *testing.T) { if mt := NewMessageTemplate(&Message{ID: "HelloWorld"}); mt != nil { - panic(mt) + t.Fatal(mt) } }