Skip to content

Commit

Permalink
Merge pull request ipfs/interface-go-ipfs-core#25 from ipfs/fix/no-cl…
Browse files Browse the repository at this point in the history
…ose-addr

don't close the top-level addr

This commit was moved from ipfs/interface-go-ipfs-core@9ebc112
  • Loading branch information
Stebalien authored Mar 29, 2019
2 parents 47907bc + e164b29 commit 8d538c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coreiface/tests/unixfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ type closeTestD struct {
}

func (f *closeTestD) Close() error {
f.t.Helper()
if f.closed {
f.t.Fatal("already closed")
}
Expand Down Expand Up @@ -879,8 +880,6 @@ func (tp *provider) TestAddCloses(t *testing.T) {
t.Fatal(err)
}

d0.Close() // Adder doesn't close top-level file

for i, n := range []*closeTestF{n1, n2, n4} {
if !n.closed {
t.Errorf("file %d not closed!", i)
Expand Down

0 comments on commit 8d538c2

Please sign in to comment.