Skip to content

Commit d946e56

Browse files
committed
fix(lint)
1 parent 5269ea0 commit d946e56

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

frankenphp_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ func TestSessionHandlerReset_worker(t *testing.T) {
11351135
resp1, err := http.Get(ts.URL + "/session-handler.php?action=set_handler_and_start&value=test1")
11361136
assert.NoError(t, err)
11371137
body1, _ := io.ReadAll(resp1.Body)
1138-
resp1.Body.Close()
1138+
_ = resp1.Body.Close()
11391139

11401140
body1Str := string(body1)
11411141
assert.Contains(t, body1Str, "HANDLER_SET_AND_STARTED")
@@ -1147,7 +1147,7 @@ func TestSessionHandlerReset_worker(t *testing.T) {
11471147
resp2, err := http.Get(ts.URL + "/session-handler.php?action=start_without_handler")
11481148
assert.NoError(t, err)
11491149
body2, _ := io.ReadAll(resp2.Body)
1150-
resp2.Body.Close()
1150+
_ = resp2.Body.Close()
11511151

11521152
body2Str := string(body2)
11531153

@@ -1179,15 +1179,15 @@ func TestIniLeakBetweenRequests_worker(t *testing.T) {
11791179
resp1, err := http.Get(ts.URL + "/ini-leak.php?action=change_ini")
11801180
assert.NoError(t, err)
11811181
body1, _ := io.ReadAll(resp1.Body)
1182-
resp1.Body.Close()
1182+
_ = resp1.Body.Close()
11831183

11841184
assert.Contains(t, string(body1), "INI_CHANGED")
11851185

11861186
// Request 2: Check if INI values leaked from request 1
11871187
resp2, err := http.Get(ts.URL + "/ini-leak.php?action=check_ini")
11881188
assert.NoError(t, err)
11891189
body2, _ := io.ReadAll(resp2.Body)
1190-
resp2.Body.Close()
1190+
_ = resp2.Body.Close()
11911191

11921192
body2Str := string(body2)
11931193
t.Logf("Response: %s", body2Str)
@@ -1212,7 +1212,7 @@ func TestSessionHandlerPreLoopPreserved_worker(t *testing.T) {
12121212
resp1, err := http.Get(ts.URL + "/worker-with-session-handler.php?action=check")
12131213
assert.NoError(t, err)
12141214
body1, _ := io.ReadAll(resp1.Body)
1215-
resp1.Body.Close()
1215+
_ = resp1.Body.Close()
12161216

12171217
body1Str := string(body1)
12181218
t.Logf("Request 1 response: %s", body1Str)
@@ -1225,7 +1225,7 @@ func TestSessionHandlerPreLoopPreserved_worker(t *testing.T) {
12251225
resp2, err := http.Get(ts.URL + "/worker-with-session-handler.php?action=use_session")
12261226
assert.NoError(t, err)
12271227
body2, _ := io.ReadAll(resp2.Body)
1228-
resp2.Body.Close()
1228+
_ = resp2.Body.Close()
12291229

12301230
body2Str := string(body2)
12311231
t.Logf("Request 2 response: %s", body2Str)
@@ -1240,7 +1240,7 @@ func TestSessionHandlerPreLoopPreserved_worker(t *testing.T) {
12401240
resp3, err := http.Get(ts.URL + "/worker-with-session-handler.php?action=check")
12411241
assert.NoError(t, err)
12421242
body3, _ := io.ReadAll(resp3.Body)
1243-
resp3.Body.Close()
1243+
_ = resp3.Body.Close()
12441244

12451245
body3Str := string(body3)
12461246
t.Logf("Request 3 response: %s", body3Str)
@@ -1261,7 +1261,7 @@ func TestIniPreLoopPreserved_worker(t *testing.T) {
12611261
resp1, err := http.Get(ts.URL + "/worker-with-ini.php?action=check")
12621262
assert.NoError(t, err)
12631263
body1, _ := io.ReadAll(resp1.Body)
1264-
resp1.Body.Close()
1264+
_ = resp1.Body.Close()
12651265

12661266
body1Str := string(body1)
12671267
t.Logf("Request 1 response: %s", body1Str)
@@ -1276,7 +1276,7 @@ func TestIniPreLoopPreserved_worker(t *testing.T) {
12761276
resp2, err := http.Get(ts.URL + "/worker-with-ini.php?action=change_ini")
12771277
assert.NoError(t, err)
12781278
body2, _ := io.ReadAll(resp2.Body)
1279-
resp2.Body.Close()
1279+
_ = resp2.Body.Close()
12801280

12811281
body2Str := string(body2)
12821282
t.Logf("Request 2 response: %s", body2Str)
@@ -1288,7 +1288,7 @@ func TestIniPreLoopPreserved_worker(t *testing.T) {
12881288
resp3, err := http.Get(ts.URL + "/worker-with-ini.php?action=check")
12891289
assert.NoError(t, err)
12901290
body3, _ := io.ReadAll(resp3.Body)
1291-
resp3.Body.Close()
1291+
_ = resp3.Body.Close()
12921292

12931293
body3Str := string(body3)
12941294
t.Logf("Request 3 response: %s", body3Str)

0 commit comments

Comments
 (0)