Skip to content

Commit

Permalink
MB-43246 Avoid leaks in plasma_parallel_test.go
Browse files Browse the repository at this point in the history
Change-Id: I5f0e0fb21c8ceb9b0694730b831edf4cf2f1361d
  • Loading branch information
rvncerr committed Oct 29, 2021
1 parent 2cec9eb commit 2d63524
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions secondary/tests/plasmatests/plasma_parallel_test.go
Expand Up @@ -906,6 +906,7 @@ func getPlasmaDiagnostics() (backStore int, mainStore int) {
client := http.Client{Timeout: time.Duration(60 * time.Second)}
resp, err1 := client.Do(request)
common.CrashOnError(err1)
defer resp.Body.Close()
responseData, err := ioutil.ReadAll(resp.Body)
responseString := string(responseData)
fmt.Println(responseString)
Expand Down Expand Up @@ -946,6 +947,7 @@ func rebalancePageSizes(wg *sync.WaitGroup, backStore int, mainStore int, iterat
client := http.Client{Timeout: time.Duration(300 * time.Second)}
resp, err1 := client.Do(request)
common.CrashOnError(err1)
defer resp.Body.Close()
responseData, err := ioutil.ReadAll(resp.Body)
responseString := string(responseData)
fmt.Println(responseString)
Expand All @@ -955,6 +957,7 @@ func rebalancePageSizes(wg *sync.WaitGroup, backStore int, mainStore int, iterat
client = http.Client{Timeout: time.Duration(300 * time.Second)}
resp, err1 = client.Do(request)
common.CrashOnError(err1)
defer resp.Body.Close()
responseData, err = ioutil.ReadAll(resp.Body)
responseString = string(responseData)
fmt.Println(responseString)
Expand Down

0 comments on commit 2d63524

Please sign in to comment.