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

Commit 114c623

Browse files
authored
Merge pull request #41 from ipfs/fix/breaking-id-hash-name
test: fix put with hash test
2 parents cb44c37 + 6ebdbe7 commit 114c623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/dag.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (tp *TestSuite) TestPutWithHash(t *testing.T) {
7171
t.Fatal(err)
7272
}
7373

74-
nd, err := ipldcbor.FromJSON(strings.NewReader(`"Hello"`), mh.ID, -1)
74+
nd, err := ipldcbor.FromJSON(strings.NewReader(`"Hello"`), mh.SHA3_256, -1)
7575
if err != nil {
7676
t.Fatal(err)
7777
}
@@ -81,7 +81,7 @@ func (tp *TestSuite) TestPutWithHash(t *testing.T) {
8181
t.Fatal(err)
8282
}
8383

84-
if nd.Cid().String() != "bafyqabtfjbswy3dp" {
84+
if nd.Cid().String() != "bafyrmifu7haikttpqqgc5ewvmp76z3z4ebp7h2ph4memw7dq4nt6btmxny" {
8585
t.Errorf("got wrong cid: %s", nd.Cid().String())
8686
}
8787
}

0 commit comments

Comments
 (0)