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

testing fixes. #94

Merged
merged 2 commits into from
May 27, 2022
Merged

testing fixes. #94

merged 2 commits into from
May 27, 2022

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented May 27, 2022

see commits.

Fixes: #82

@kkourt kkourt requested a review from a team as a code owner May 27, 2022 16:05
Copy link
Contributor

@willfindlay willfindlay left a comment

Choose a reason for hiding this comment

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

LGTM, just one minor nit, take it or leave it.

pkg/sensors/tracing/kprobe_copyfd_test.go Show resolved Hide resolved
kkourt added 2 commits May 27, 2022 18:13
We are seeing tests fail with the following errors:
    kprobe_sigkill_test.go:33: error reading stderr> : read |0: file already closed
    kprobe_sigkill_test.go:33: error reading stdout> : read |0: file already closed

One potential reason for this is that we wait on the commands before the
reads from the stderr/stdout pipes have completed, which is incorrect:
https://pkg.go.dev/os/exec#Cmd.StderrPipe.

this patch fixes this.

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt force-pushed the pr/kkourt/test-pipes-fixes branch from fd17966 to 8fbf38e Compare May 27, 2022 16:13
@kkourt kkourt merged commit 7165910 into main May 27, 2022
@kkourt kkourt deleted the pr/kkourt/test-pipes-fixes branch May 27, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: possible flake in TestCopyFd
2 participants