Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Fix streamer flake #1797

Merged

Conversation

GuessWhoSamFoo
Copy link
Contributor

What this PR does / why we need it:
This PR fixes a test flake which had two possible failures: timing out or a nil message.

If the go routine in the test fails before completion, the test would block indefinitely. Alternatively, createEvent is called twice - the handler and instantiation of the streamer. The unnecessary call is now removed.

Results of this test are now reproducible:

$ go test -run TestStreamer_Stream -count 1000
PASS
ok      github.com/vmware-tanzu/octant/internal/log     0.201s

Which issue(s) this PR fixes

Signed-off-by: GuessWhoSamFoo [email protected]
Co-Authored-by: Wayne Witzel III [email protected]

Signed-off-by: GuessWhoSamFoo <[email protected]>
Co-Authored-by: Wayne Witzel III <[email protected]>
@GuessWhoSamFoo
Copy link
Contributor Author

I love the irony of a test flake fix failing due to a different test flake.

@wwitzel3 wwitzel3 requested a review from bryanl January 7, 2021 22:11
@GuessWhoSamFoo GuessWhoSamFoo merged commit 915279c into vmware-archive:master Jan 7, 2021
@GuessWhoSamFoo GuessWhoSamFoo deleted the streamer-flake branch January 7, 2021 22:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streamer test flake
2 participants