Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

observer_test_helper: make helpers generic over TB #1437

Merged
merged 1 commit into from Sep 6, 2023

Conversation

willfindlay
Copy link
Contributor

The testing package supports additional test types, such as fuzzing and bench testing. However, our existing observer test helpers were designed only to work with unit tests. To support additional test types, modify the observer test helpers to use the generic testing.TB interface instead of testing.T. This should facilitate writing fuzz tests and benchmarks for Tetragon in the future.

The testing package supports additional test types, such as fuzzing and bench testing.
However, our existing observer test helpers were designed only to work with unit tests. To
support additional test types, modify the observer test helpers to use the generic
testing.TB interface instead of testing.T. This should facilitate writing fuzz tests and
benchmarks for Tetragon in the future.

Signed-off-by: William Findlay <will@isovalent.com>
@willfindlay willfindlay requested a review from a team as a code owner September 5, 2023 18:44
@willfindlay willfindlay added the release-note/misc This PR makes changes that have no direct user impact. label Sep 5, 2023
Copy link
Member

@mtardy mtardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks very 😇

@willfindlay willfindlay merged commit 28cebba into main Sep 6, 2023
26 of 27 checks passed
@willfindlay willfindlay deleted the pr/willfindlay/generic-testhelper branch September 6, 2023 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants