Commit 1b707f29 authored by Steven Allen's avatar Steven Allen
parent c35356b2
......@@ -834,6 +834,7 @@ type closeTestD struct {
}
func (f *closeTestD) Close() error {
f.t.Helper()
if f.closed {
f.t.Fatal("already closed")
}
......@@ -874,8 +875,6 @@ func (tp *provider) TestAddCloses(t *testing.T) {
t.Error(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