Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/go-merkledag
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bcb22fe2db17387705ebc1236a5040399098310d
Choose a base ref
..
head repository: ipfs/go-merkledag
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3b8c0ad40d539e62db8660fc01533180d726dcbf
Choose a head ref
Showing with 5 additions and 0 deletions.
  1. +5 −0 merkledag_test.go
5 changes: 5 additions & 0 deletions merkledag_test.go
Original file line number Diff line number Diff line change
@@ -677,6 +677,7 @@ func TestEnumerateAsyncFailsNotFound(t *testing.T) {
b := NodeWithData([]byte("foo2"))
c := NodeWithData([]byte("foo3"))
d := NodeWithData([]byte("foo4"))
e := NodeWithData([]byte("foo5"))

ds := dstest.Mock()
for _, n := range []ipld.Node{a, b, c} {
@@ -703,6 +704,10 @@ func TestEnumerateAsyncFailsNotFound(t *testing.T) {
t.Fatal(err)
}

if err := parent.AddNodeLink("e", e); err != nil {
t.Fatal(err)
}

err := ds.Add(ctx, parent)
if err != nil {
t.Fatal(err)