From 98d8c939c2ab42404a1b6369d96ece368d0a2dca Mon Sep 17 00:00:00 2001 From: Max Brosnahan Date: Tue, 10 Nov 2015 22:13:56 -0700 Subject: [PATCH] Remove race in patch test --- patch_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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",