mirror of
https://github.com/golang/go
synced 2024-11-25 12:17:56 -07:00
compress/gzip: close writer in test
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
69583738eb
commit
cda1b48fe3
@ -200,6 +200,11 @@ func TestWriterFlush(t *testing.T) {
|
||||
if n2 == n3 {
|
||||
t.Fatal("Flush didn't flush any data")
|
||||
}
|
||||
|
||||
if err := w.Close(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Multiple gzip files concatenated form a valid gzip file.
|
||||
|
Loading…
Reference in New Issue
Block a user