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

ifname: avoid unpredictable conditions in getMap test #7848

Merged
merged 2 commits into from
Jul 17, 2020
Merged

Conversation

reimda
Copy link
Contributor

@reimda reimda commented Jul 16, 2020

No description provided.

wgReq.Wait()

//remote call should only happen once
// Remote call should not happen subsequent times getMap runs
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like you still need a waitgroup for these goroutines, otherwise it's possible they haven't event started running yet when the function ends.

@reimda reimda merged commit ef262b1 into master Jul 17, 2020
@reimda reimda deleted the ifname-fix-test branch July 17, 2020 21:26
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
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.

3 participants