diff --git a/patch_test.go b/patch_test.go index f7268cd..7e24c72 100644 --- a/patch_test.go +++ b/patch_test.go @@ -187,10 +187,8 @@ func TestPatchOverflow(t *testing.T) { body := &noEOFReader{} - go func() { - body.Write([]byte("hellothisismorethan15bytes")) - body.Close() - }() + body.Write([]byte("hellothisismorethan15bytes")) + body.Close() (&httpTest{ Name: "Too big body exceeding file size",