mirror of
https://github.com/go-delve/delve.git
synced 2025-11-03 13:57:33 +08:00
pkg/proc,pkg/terminal: close response body in tests (#3372)
This commit is contained in:
@ -693,7 +693,10 @@ func TestIssue827(t *testing.T) {
|
||||
withTestTerminal("notify-v2", t, func(term *FakeTerminal) {
|
||||
go func() {
|
||||
time.Sleep(1 * time.Second)
|
||||
http.Get("http://127.0.0.1:8888/test")
|
||||
resp, err := http.Get("http://127.0.0.1:8888/test")
|
||||
if err == nil {
|
||||
resp.Body.Close()
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
term.client.Halt()
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user