author | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-05-22 16:48:38 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-05-22 16:57:01 UTC |
parent | 521063f2a30ad20a22debc0178413012b4339ae0 |
log_test.go | +1 | -0 |
diff --git a/log_test.go b/log_test.go index 799ada8..a944bba 100644 --- a/log_test.go +++ b/log_test.go @@ -187,6 +187,7 @@ func (nopCloser) Close() error { return nil } func TestReopenNull(t *testing.T) { l := New(nopCloser{ioutil.Discard}) + defer l.Close() if err := l.Reopen(); err != nil { t.Errorf("reopen: %v", err) }