1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:44:41 -07:00

compress/gzip: close writer in test

Change-Id: I12bc9287106f1492cbc9e74b4163cce97c957d31
GitHub-Last-Rev: cda1b48fe3
GitHub-Pull-Request: golang/go#66185
Reviewed-on: https://go-review.googlesource.com/c/go/+/569896
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
guoguangwu 2024-03-09 03:10:36 +00:00 committed by Gopher Robot
parent 3e1a6925a1
commit a3eb3b8148

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.