fix: parseIPLDErrNotFound test
This commit was moved from ipfs/go-ipfs-http-client@2e09c4b3ab580f71c652c82926ba7b1580a2b495
Jorropo committed
Mar 31, 2022 at 23:36 UTC
a2a60768ea7e5d5dad1ad1f0dcf8811cca24d3eb
1 file changed
+2
-2
client/httpapi/errors_test.go
+2
-2
@@ -24,9 +24,9 @@ func doParseIpldNotFoundTest(t *testing.T, original error) {
24
}
25
26
originalNotFound := ipld.IsNotFound(original)
27
- rebuiltNotFound := ipld.IsNotFound(original)
27
+ rebuiltNotFound := ipld.IsNotFound(rebuilt)
28
if originalNotFound != rebuiltNotFound {
29
- t.Errorf("expected Ipld.IsNotFound to be %t; got %t", originalNotFound, rebuiltNotFound)
29
+ t.Errorf("for %q expected Ipld.IsNotFound to be %t; got %t", originalMsg, originalNotFound, rebuiltNotFound)
30
}
31
}
32