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

Commit 75c770a

Browse files
committed
fix some tests
1 parent ecadbbe commit 75c770a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (tp *TestSuite) TestBlockPin(t *testing.T) {
227227

228228
pins, err := accPins(api.Pin().Ls(ctx))
229229
if err != nil {
230-
return
230+
t.Skip(err)
231231
}
232232
if len(pins) != 1 {
233233
t.Fatal("expected 1 pin")

tests/pin.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func (tp *TestSuite) TestPinRecursive(t *testing.T) {
160160
}
161161

162162
if list[0].Path().String() != path.IpldPath(nd3.Cid()).String() {
163-
t.Errorf("unexpected path, %s != %s", list[0].Path().String(), path.IpfsPath(nd2.Cid()).String())
163+
t.Errorf("unexpected path, %s != %s", list[0].Path().String(), path.IpfsPath(nd3.Cid()).String())
164164
}
165165

166166
list, err = accPins(api.Pin().Ls(ctx, opt.Pin.Ls.Recursive()))
@@ -173,7 +173,7 @@ func (tp *TestSuite) TestPinRecursive(t *testing.T) {
173173
}
174174

175175
if list[0].Path().String() != path.IpldPath(nd2.Cid()).String() {
176-
t.Errorf("unexpected path, %s != %s", list[0].Path().String(), path.IpldPath(nd3.Cid()).String())
176+
t.Errorf("unexpected path, %s != %s", list[0].Path().String(), path.IpldPath(nd2.Cid()).String())
177177
}
178178

179179
list, err = accPins(api.Pin().Ls(ctx, opt.Pin.Ls.Indirect()))
@@ -186,7 +186,7 @@ func (tp *TestSuite) TestPinRecursive(t *testing.T) {
186186
}
187187

188188
if list[0].Path().Cid().String() != p0.Cid().String() {
189-
t.Error("unexpected path")
189+
t.Errorf("unexpected path, %s != %s", list[0].Path().Cid().String(), p0.Cid().String())
190190
}
191191

192192
res, err := api.Pin().Verify(ctx)

0 commit comments

Comments
 (0)