Commit 2f5949d0 authored by Vitalii Ananichev's avatar Vitalii Ananichev Committed by Jesús Espino
Browse files

Migrate tests from "model/cluster_stats_test.go" to use testify (#12580)

parent 467141ab
......@@ -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")
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment