-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): integration timeout handling
Updated the Tracee integration tests to address a bug with the time.After usage. Previously, at each iteration of the loop, the time.After was reset whenever its corresponding select clause was reached. This behavior resulted in the creation of a new timer on each loop iteration without freeing the previous one, leading to a memory leak. The solution involved replacing time.After with a dedicated timeoutTicker, ensuring consistent timeout handling without unnecessary resource consumption.
- Loading branch information
Showing
1 changed file
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters