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

Fix a developer error in the jobreceiver tests #1659

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

echlebek
Copy link
Contributor

Calling t.FailNow or functions that call t.FailNow indirectly from goroutines outside the function under test is not allowed. In this instance, it seems it was causing the test to deadlock.

Calling t.FailNow or functions that call t.FailNow indirectly from
goroutines outside the function under test is not allowed. In this
instance, it seems it was causing the test to deadlock.

Signed-off-by: Eric Chlebek <[email protected]>
@echlebek echlebek self-assigned this Aug 19, 2024
@echlebek echlebek requested a review from a team as a code owner August 19, 2024 18:23
@echlebek echlebek marked this pull request as draft August 19, 2024 18:23
@echlebek echlebek marked this pull request as ready for review August 19, 2024 19:42
@echlebek echlebek enabled auto-merge (squash) August 19, 2024 19:42
var buf bytes.Buffer
_, err := io.Copy(&buf, stdout)
require.NoError(t, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like calling NoError in the go routine was the issue...

@echlebek echlebek merged commit 8d38ad5 into main Aug 19, 2024
42 checks passed
@echlebek echlebek deleted the jobreceiver-test-maintenance branch August 19, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants