Skip to content

Commit

Permalink
fix: use IPLD.ErrNotFound instead of string comparison in tests
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/interface-go-ipfs-core@03f4e9c

This commit was moved from ipfs/boxo@548e3d4
  • Loading branch information
Jorropo committed Apr 2, 2022
1 parent 29d0379 commit 9120e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/coreiface/tests/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (tp *TestSuite) TestBlockRm(t *testing.T) {
if err == nil {
t.Fatal("expected err to exist")
}
if !strings.Contains(err.Error(), "not found") {
if !ipld.IsNotFound(err) {
t.Errorf("unexpected error; %s", err.Error())
}

Expand Down

0 comments on commit 9120e3f

Please sign in to comment.