Skip to content

Commit c8ec1ea

Browse files
committed
fix(lint)
1 parent a9561d0 commit c8ec1ea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

frankenphp_test.go

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

10901090
body1Str := string(body1)
10911091
assert.Contains(t, body1Str, "HANDLER_SET_AND_STARTED")
@@ -1097,7 +1097,7 @@ func TestSessionHandlerReset_worker(t *testing.T) {
10971097
resp2, err := http.Get(ts.URL + "/session-handler.php?action=start_without_handler")
10981098
assert.NoError(t, err)
10991099
body2, _ := io.ReadAll(resp2.Body)
1100-
resp2.Body.Close()
1100+
_ = resp2.Body.Close()
11011101

11021102
body2Str := string(body2)
11031103

@@ -1129,15 +1129,15 @@ func TestIniLeakBetweenRequests_worker(t *testing.T) {
11291129
resp1, err := http.Get(ts.URL + "/ini-leak.php?action=change_ini")
11301130
assert.NoError(t, err)
11311131
body1, _ := io.ReadAll(resp1.Body)
1132-
resp1.Body.Close()
1132+
_ = resp1.Body.Close()
11331133

11341134
assert.Contains(t, string(body1), "INI_CHANGED")
11351135

11361136
// Request 2: Check if INI values leaked from request 1
11371137
resp2, err := http.Get(ts.URL + "/ini-leak.php?action=check_ini")
11381138
assert.NoError(t, err)
11391139
body2, _ := io.ReadAll(resp2.Body)
1140-
resp2.Body.Close()
1140+
_ = resp2.Body.Close()
11411141

11421142
body2Str := string(body2)
11431143
t.Logf("Response: %s", body2Str)
@@ -1162,7 +1162,7 @@ func TestSessionHandlerPreLoopPreserved_worker(t *testing.T) {
11621162
resp1, err := http.Get(ts.URL + "/worker-with-session-handler.php?action=check")
11631163
assert.NoError(t, err)
11641164
body1, _ := io.ReadAll(resp1.Body)
1165-
resp1.Body.Close()
1165+
_ = resp1.Body.Close()
11661166

11671167
body1Str := string(body1)
11681168
t.Logf("Request 1 response: %s", body1Str)
@@ -1175,7 +1175,7 @@ func TestSessionHandlerPreLoopPreserved_worker(t *testing.T) {
11751175
resp2, err := http.Get(ts.URL + "/worker-with-session-handler.php?action=use_session")
11761176
assert.NoError(t, err)
11771177
body2, _ := io.ReadAll(resp2.Body)
1178-
resp2.Body.Close()
1178+
_ = resp2.Body.Close()
11791179

11801180
body2Str := string(body2)
11811181
t.Logf("Request 2 response: %s", body2Str)
@@ -1190,7 +1190,7 @@ func TestSessionHandlerPreLoopPreserved_worker(t *testing.T) {
11901190
resp3, err := http.Get(ts.URL + "/worker-with-session-handler.php?action=check")
11911191
assert.NoError(t, err)
11921192
body3, _ := io.ReadAll(resp3.Body)
1193-
resp3.Body.Close()
1193+
_ = resp3.Body.Close()
11941194

11951195
body3Str := string(body3)
11961196
t.Logf("Request 3 response: %s", body3Str)
@@ -1211,7 +1211,7 @@ func TestIniPreLoopPreserved_worker(t *testing.T) {
12111211
resp1, err := http.Get(ts.URL + "/worker-with-ini.php?action=check")
12121212
assert.NoError(t, err)
12131213
body1, _ := io.ReadAll(resp1.Body)
1214-
resp1.Body.Close()
1214+
_ = resp1.Body.Close()
12151215

12161216
body1Str := string(body1)
12171217
t.Logf("Request 1 response: %s", body1Str)
@@ -1226,7 +1226,7 @@ func TestIniPreLoopPreserved_worker(t *testing.T) {
12261226
resp2, err := http.Get(ts.URL + "/worker-with-ini.php?action=change_ini")
12271227
assert.NoError(t, err)
12281228
body2, _ := io.ReadAll(resp2.Body)
1229-
resp2.Body.Close()
1229+
_ = resp2.Body.Close()
12301230

12311231
body2Str := string(body2)
12321232
t.Logf("Request 2 response: %s", body2Str)
@@ -1238,7 +1238,7 @@ func TestIniPreLoopPreserved_worker(t *testing.T) {
12381238
resp3, err := http.Get(ts.URL + "/worker-with-ini.php?action=check")
12391239
assert.NoError(t, err)
12401240
body3, _ := io.ReadAll(resp3.Body)
1241-
resp3.Body.Close()
1241+
_ = resp3.Body.Close()
12421242

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

0 commit comments

Comments
 (0)