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 SNMP trap test race #7731

Merged
merged 1 commit into from
Jun 24, 2020
Merged

Fix SNMP trap test race #7731

merged 1 commit into from
Jun 24, 2020

Conversation

reimda
Copy link
Contributor

@reimda reimda commented Jun 24, 2020

Clean up race detected by 'go test -race' in snmp_trap input plugin

@reimda
Copy link
Contributor Author

reimda commented Jun 24, 2020

The race was that the oid lookup mock was inserted after the plugin was started. Inserting the mock to before starting the plugin prevents the race.

@reimda
Copy link
Contributor Author

reimda commented Jun 24, 2020

related #7729

@reimda reimda merged commit 7f3c30b into master Jun 24, 2020
@reimda reimda deleted the snmp-trap-test-race branch June 24, 2020 18:50
rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants