1
0
mirror of https://github.com/golang/go synced 2024-11-12 00:40:23 -07:00

compress/gzip: add missing error check in test

This commit is contained in:
Leon Klingele 2019-01-30 18:06:09 +01:00
parent 56c9f8e8cf
commit a43cffe45f
No known key found for this signature in database
GPG Key ID: 0C8AF48831EEC211

View File

@ -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")