Merge pull request #30 from gingermusketeer/fix_race_in_tests

Remove race in patch test
This commit is contained in:
Marius 2015-11-11 15:11:52 +01:00
commit f569ae3f5d
1 changed files with 2 additions and 4 deletions

View File

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