Skip to content

Commit

Permalink
fix: 🚨 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienyhuel committed Jan 8, 2025
1 parent c43da2a commit 91a05c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions coraza_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91a05c7

Please sign in to comment.