Merge pull request #84796 from damemi/fix-graceful-shutdown
Fixed error check in graceful shutdown test
This commit is contained in:
@@ -92,8 +92,8 @@ func TestGracefulShutdown(t *testing.T) {
|
|||||||
}
|
}
|
||||||
body.Close()
|
body.Close()
|
||||||
respErr := <-respErrCh
|
respErr := <-respErrCh
|
||||||
if err != nil {
|
if respErr.err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(respErr.err)
|
||||||
}
|
}
|
||||||
defer respErr.resp.Body.Close()
|
defer respErr.resp.Body.Close()
|
||||||
bs, err := ioutil.ReadAll(respErr.resp.Body)
|
bs, err := ioutil.ReadAll(respErr.resp.Body)
|
||||||
|
Reference in New Issue
Block a user