From 2f5949d05eb65324ef5de697ea6df631d35a4ad1 Mon Sep 17 00:00:00 2001 From: Vitalii Ananichev Date: Sun, 13 Oct 2019 22:37:41 +0300 Subject: [PATCH] Migrate tests from "model/cluster_stats_test.go" to use testify (#12580) --- model/cluster_stats_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/cluster_stats_test.go b/model/cluster_stats_test.go index 82bacf5263..7aea9a9295 100644 --- a/model/cluster_stats_test.go +++ b/model/cluster_stats_test.go @@ -6,6 +6,8 @@ package model import ( "strings" "testing" + + "github.com/stretchr/testify/require" ) func TestClusterStatsJson(t *testing.T) { @@ -13,7 +15,5 @@ func TestClusterStatsJson(t *testing.T) { json := cluster.ToJson() result := ClusterStatsFromJson(strings.NewReader(json)) - if cluster.Id != result.Id { - t.Fatal("Ids do not match") - } + require.Equal(t, cluster.Id, result.Id, "Ids do not match") }