Skip to content

Commit

Permalink
Fix error check
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Feb 20, 2025
1 parent 7552b56 commit b22a166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/coreiface/tests/unixfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ func (tp *TestSuite) TestGetNonUnixfs(t *testing.T) {
}

_, err = api.Unixfs().Get(ctx, path.FromCid(nd.Cid()))
if !strings.Contains(err.Error(), "proto: required field") {
t.Fatalf("expected protobuf error, got: %s", err)
if !strings.Contains(err.Error(), "proto:") || !strings.Contains(err.Error(), "required field") {
t.Fatalf("expected \"proto: required field\", got: %q", err)
}
}

Expand Down

0 comments on commit b22a166

Please sign in to comment.