Skip to content

Commit daff28b

Browse files
committed
Linter
1 parent 7ab8ce6 commit daff28b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pkg/da/types/namespace_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,8 @@ func TestNamespaceFromBytes(t *testing.T) {
110110
return
111111
}
112112

113-
if err != nil {
114-
t.Fatalf("%s: unexpected error: %v", tt.description, err)
115-
}
116-
if ns == nil {
117-
t.Fatal("expected non-nil namespace but got nil")
118-
}
113+
require.NoError(t, err, tt.description)
114+
require.NotNil(t, ns, "expected non-nil namespace but got nil")
119115
if !bytes.Equal(tt.input, ns.Bytes()) {
120116
t.Errorf("Should round-trip correctly, expected %v, got %v", tt.input, ns.Bytes())
121117
}

0 commit comments

Comments
 (0)