From 23d495becaaeaf2677959986b7902754ac679c10 Mon Sep 17 00:00:00 2001 From: TPaschalis Date: Fri, 11 Oct 2019 15:59:11 +0300 Subject: [PATCH] Migrate tests from model/compliance_test.go to use testify (#12497) --- model/compliance_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/compliance_test.go b/model/compliance_test.go index 32ce48db5c..2f22dc2b22 100644 --- a/model/compliance_test.go +++ b/model/compliance_test.go @@ -6,6 +6,8 @@ package model import ( "strings" "testing" + + "github.com/stretchr/testify/require" ) func TestCompliance(t *testing.T) { @@ -13,7 +15,5 @@ func TestCompliance(t *testing.T) { json := o.ToJson() result := ComplianceFromJson(strings.NewReader(json)) - if o.Desc != result.Desc { - t.Fatal("JobName do not match") - } + require.Equal(t, o.Desc, result.Desc, "JobName do not match") }