Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

fix: use IPLD.ErrNotFound instead of string comparison in tests #84

Merged
merged 2 commits into from
Apr 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.6.1"
"version": "v0.6.2"
}