File tree 3 files changed +3
-3
lines changed
core/coreapi/interface/tests
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ func (tp *provider) TestBatch(t *testing.T) {
185
185
}
186
186
187
187
_ , err = api .Dag ().Get (ctx , nds [0 ].Cid ())
188
- if err == nil || err .Error () != "merkledag: not found" {
188
+ if err == nil || ! strings . Contains ( err .Error (), " not found") {
189
189
t .Error (err )
190
190
}
191
191
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ func (tp *provider) TestInvalidPathRemainder(t *testing.T) {
151
151
}
152
152
153
153
_ , err = api .ResolvePath (ctx , p1 )
154
- if err == nil || err .Error () != "no such link found" {
154
+ if err == nil || ! strings . Contains ( err .Error (), "no such link found" ) {
155
155
t .Fatalf ("unexpected error: %s" , err )
156
156
}
157
157
}
Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ func (tp *provider) TestAddHashOnly(t *testing.T) {
587
587
if err == nil {
588
588
t .Fatal ("expected an error" )
589
589
}
590
- if err .Error () != "blockservice: key not found" {
590
+ if ! strings . Contains ( err .Error (), "blockservice: key not found" ) {
591
591
t .Errorf ("unxepected error: %s" , err .Error ())
592
592
}
593
593
}
You can’t perform that action at this time.
0 commit comments