mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#41 from ipfs/fix/breaking-id-hash-name
test: fix put with hash test This commit was moved from ipfs/interface-go-ipfs-core@114c623371 This commit was moved from ipfs/boxo@65645f11a9
This commit is contained in:
commit
8bc791eb0f
@ -71,7 +71,7 @@ func (tp *TestSuite) TestPutWithHash(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
nd, err := ipldcbor.FromJSON(strings.NewReader(`"Hello"`), mh.ID, -1)
|
||||
nd, err := ipldcbor.FromJSON(strings.NewReader(`"Hello"`), mh.SHA3_256, -1)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@ -81,7 +81,7 @@ func (tp *TestSuite) TestPutWithHash(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if nd.Cid().String() != "bafyqabtfjbswy3dp" {
|
||||
if nd.Cid().String() != "bafyrmifu7haikttpqqgc5ewvmp76z3z4ebp7h2ph4memw7dq4nt6btmxny" {
|
||||
t.Errorf("got wrong cid: %s", nd.Cid().String())
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user