From e5ea44afcbc3236dc2c4499bedd8269acf859882 Mon Sep 17 00:00:00 2001 From: boonwj <3538312+boonwj@users.noreply.github.com> Date: Tue, 8 Oct 2019 08:02:50 +0100 Subject: [PATCH] [MM-19158] Migrate to testify in model/cluster_message_test.go (#12615) --- model/cluster_message_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/model/cluster_message_test.go b/model/cluster_message_test.go index e9225a5c50..ba02eed78c 100644 --- a/model/cluster_message_test.go +++ b/model/cluster_message_test.go @@ -22,7 +22,6 @@ func TestClusterMessage(t *testing.T) { require.Equal(t, "hello", result.Data) badresult := ClusterMessageFromJson(strings.NewReader("junk")) - if badresult != nil { - t.Fatal("should not have parsed") - } + + require.Nil(t, badresult, "should not have parsed") }