From 91a05c7aa659a2b06185a7e9b68effda3c1d6ea4 Mon Sep 17 00:00:00 2001 From: Adrien YHUEL Date: Wed, 8 Jan 2025 21:04:39 +0100 Subject: [PATCH] fix: :rotating_light: linting --- coraza_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/coraza_test.go b/coraza_test.go index c0493b9..c7aa262 100644 --- a/coraza_test.go +++ b/coraza_test.go @@ -115,13 +115,13 @@ func TestClientIpRule(t *testing.T) { t.Fatal(err) } - // client_ip will be 127.0.0.1 - req, _ := http.NewRequest("GET", baseURL+"/", nil) - tester.AssertResponseCode(req, 200) + // client_ip will be 127.0.0.1 + req, _ := http.NewRequest("GET", baseURL+"/", nil) + tester.AssertResponseCode(req, 200) - time.Sleep(1 * time.Second) + time.Sleep(1 * time.Second) - // client_ip will be 127.0.0.2 + // client_ip will be 127.0.0.2 req, _ = http.NewRequest("GET", baseURL+"/", nil) req.Header.Add("X-Forwarded-For", "127.0.0.2") tester.AssertResponseCode(req, 403)