Skip to content

Commit 289ef1c

Browse files
committed
try ErrorAs
1 parent fe0cd47 commit 289ef1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/notes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ func TestGetNonExistentNotes(t *testing.T) {
4747
note := Note{}
4848
err = GetNote(t.Context(), bareRepo1, "non_existent_sha", &note)
4949
assert.Error(t, err)
50-
assert.ErrorIs(t, err, ErrNotExist{})
50+
assert.ErrorAs(t, err, ErrNotExist{})
5151
}

0 commit comments

Comments
 (0)