Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tetragon: Fix delayed sensor unblock code
The delayed sensor is used in TestPolicyListingWhileLoadUnload to check on loaded sensors states with following code path. - one go routine is periodically listing sensors and when found it calls unblock on delayed sensor that sends data on sensor's channel - another go routine is adding sensor and calls Load on delayed sensor to receive data from the sensors channel Currently the test can fail in delayed sensor's unblock if the receiving side is not ready yet, which is completely ok, because sensor is first added in the collections and only after the Load method is called. Instead of failing immediately adding 10 seconds timer on delayed sensor's unblock select. Fixes: #2576 Signed-off-by: Jiri Olsa <jolsa@kernel.org>
- Loading branch information