Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
piyushroshan committed Nov 7, 2024
1 parent df31633 commit f498edb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/seclang/parser_test.go
Original file line number Diff line number Diff line change
@@ -45,7 +45,13 @@ func TestAllowedMetadataTags(t *testing.T) {
tx := waf.NewTransaction()
tx.ProcessURI("http://localhost/test.php?m1=123&m2=abc123&m3=true&m4=a5", "GET", "1.1")
tx.ProcessRequestHeaders()
tx.ProcessRequestBody()
interrupt, err := tx.ProcessRequestBody()
if err != nil {
t.Error(err)
}
if interrupt != nil {
t.Error("Transaction interrupted")
}
matchedRules := tx.MatchedRules()
if len(matchedRules) != 3 {
t.Errorf("Expected 4 matched rule, got %d", len(matchedRules))

0 comments on commit f498edb

Please sign in to comment.