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

Commit

Permalink
Merge pull request #25 from ipfs/fix/no-close-addr
Browse files Browse the repository at this point in the history
don't close the top-level addr
  • Loading branch information
Stebalien authored Mar 29, 2019
2 parents ccf9dac + 1b707f2 commit 9ebc112
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 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 9ebc112

Please sign in to comment.