Unverified Commit 9ebc1123 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #25 from ipfs/fix/no-close-addr

don't close the top-level addr
parents ccf9dacf 1b707f29
......@@ -839,6 +839,7 @@ type closeTestD struct {
}
func (f *closeTestD) Close() error {
f.t.Helper()
if f.closed {
f.t.Fatal("already closed")
}
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment