Skip to content

Commit

Permalink
Merge pull request ipfs/interface-go-ipfs-core#41 from ipfs/fix/break…
Browse files Browse the repository at this point in the history
…ing-id-hash-name

test: fix put with hash test

This commit was moved from ipfs/interface-go-ipfs-core@114c623
  • Loading branch information
Stebalien authored Aug 23, 2019
2 parents 361023c + 7b3e2ba commit 15e7068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coreiface/tests/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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())
}
}
Expand Down

0 comments on commit 15e7068

Please sign in to comment.