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

periodic: add timeout to all function calls in the tests #3309

Merged
merged 1 commit into from
Nov 4, 2019

Conversation

karampok
Copy link
Contributor

@karampok karampok commented Nov 4, 2019

There is a flake in periodic tests. In this commit
we put the close(done) in the defer so we make sure
always is executed (in case there is a return earlier).

Also we guard with a timeout wrapper all functions that
can be blocked.

This change is Reviewable

@karampok karampok force-pushed the pub-fix-periodic branch 2 times, most recently from 1c0e9a1 to 01775ac Compare November 4, 2019 15:01
There is a flake in periodic tests. In this commit
we put the close(done) in the defer so we make sure
always is executed (in case there is a return earlier).

Also we guard with a timeout wrapper all functions that
can be blocked.
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @karampok)

a discussion (no related file):
the title should not state it fixes it. I'm pretty sure it doesn't.


@karampok karampok changed the title periodic: fix flake in tests periodic: add timeout to all function calls Nov 4, 2019
@karampok karampok changed the title periodic: add timeout to all function calls periodic: add timeout to all function calls in the tests Nov 4, 2019
Copy link
Collaborator

@lukedirtwalker lukedirtwalker left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@karampok karampok merged commit 5829f0a into scionproto:master Nov 4, 2019
@karampok karampok deleted the pub-fix-periodic branch November 7, 2019 15:11
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.

2 participants