Skip to content

Commit

Permalink
fix: broken TestHardcodedIncludeDirectiveDDOS2 on windows (#1136)
Browse files Browse the repository at this point in the history
* fix: broken TestHardcodedIncludeDirectiveDDOS2 on windows

* fix: error checking in TestHardcodedIncludeDirectiveDDOS2

---------

Co-authored-by: José Carlos Chávez <jcchavezs@gmail.com>
  • Loading branch information
jabdr and jcchavezs committed Sep 23, 2024
1 parent c87dd22 commit 5eb9b53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/seclang/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ func TestHardcodedIncludeDirectiveDDOS2(t *testing.T) {
if err != nil {
t.Fatal(err)
}
err = tmpFile2.Close()
if err != nil {
t.Fatal(err)
}

w := bufio.NewWriter(tmpFile)
for i := 0; i < maxIncludeRecursion+1; i++ {
Expand Down

0 comments on commit 5eb9b53

Please sign in to comment.