diff --git a/internal/cmd/util/util_test.go b/internal/cmd/util/util_test.go index 6072f9d5..6b407fe4 100644 --- a/internal/cmd/util/util_test.go +++ b/internal/cmd/util/util_test.go @@ -199,7 +199,7 @@ func TestDescribeFormat(t *testing.T) { Bar: "bar", }, "Foo is: {{.Foo}} Bar is: {{.Bar}}") - assert.NoError(t, err) + require.NoError(t, err) assert.Equal(t, "Foo is: foo Bar is: bar\n", buf.String()) } @@ -213,7 +213,7 @@ func TestDescribeJSON(t *testing.T) { Bar: "bar", }) - assert.NoError(t, err) + require.NoError(t, err) assert.JSONEq(t, `{"foo":"foo", "bar": "bar"}`, buf.String()) } @@ -227,7 +227,7 @@ func TestDescribeYAML(t *testing.T) { Bar: "bar", }) - assert.NoError(t, err) + require.NoError(t, err) assert.YAMLEq(t, `{"foo":"foo", "bar": "bar"}`, buf.String()) }