mirror of
https://github.com/golang/go
synced 2024-11-23 18:20:04 -07:00
compress/gzip: add missing error check in test
This commit is contained in:
parent
56c9f8e8cf
commit
a43cffe45f
@ -214,6 +214,9 @@ func TestConcat(t *testing.T) {
|
||||
w.Close()
|
||||
|
||||
r, err := NewReader(&buf)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
data, err := ioutil.ReadAll(r)
|
||||
if string(data) != "hello world\n" || err != nil {
|
||||
t.Fatalf("ReadAll = %q, %v, want %q, nil", data, err, "hello world")
|
||||
|
Loading…
Reference in New Issue
Block a user