Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix error check
  • Loading branch information
gammazero committed Feb 24, 2025
commit 54d0baa8065733a981c81d1afa556bea5ad5cda7
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
Loading