Skip to content

Commit

Permalink
chore: fix tests for new var names
Browse files Browse the repository at this point in the history
  • Loading branch information
troyxmccall committed Jun 23, 2024
1 parent 92a73ed commit a16aee7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modsecurity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func TestModsecurity_ServeHTTP(t *testing.T) {
jailConfig: &Config{
JailEnabled: true,
BadRequestsThresholdCount: 3,
BadRequestsThresholdPeriod: 10,
JailTimeDuration: 10,
BadRequestsThresholdPeriodSecs: 10,
JailTimeDurationSecs: 10,
},
},
}
Expand Down Expand Up @@ -130,8 +130,8 @@ func TestModsecurity_ServeHTTP(t *testing.T) {
ModSecurityUrl: modsecurityMockServer.URL,
JailEnabled: tt.jailEnabled,
BadRequestsThresholdCount: 25,
BadRequestsThresholdPeriod: 600,
JailTimeDuration: 600,
BadRequestsThresholdPeriodSecs: 600,
JailTimeDurationSecs: 600,
}

if tt.jailEnabled && tt.jailConfig != nil {
Expand Down

0 comments on commit a16aee7

Please sign in to comment.