1
0
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:
guoguangwu 2024-03-08 16:56:27 +08:00
parent 69583738eb
commit cda1b48fe3

View File

@ -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.