Skip to content

fix(inputs.opcua): Fix integration test for consecutive session error #17201

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

Merged
merged 1 commit into from
Jun 18, 2025

Conversation

skartikey
Copy link
Contributor

@skartikey skartikey commented Jun 17, 2025

Summary

The original test was assuming a default threshold of 2, but our new implementation uses a default of 1. By explicitly setting the threshold to 2 in this test, it will behave as expected and properly test the multi-error scenario.

This way:

  1. TestReconnectErrorThresholdDefaultIntegration tests the default behaviour (threshold = 1)
  2. TestConsecutiveSessionErrorRecoveryIntegration tests multi-error scenarios (threshold = 2)
  3. TestReconnectErrorThresholdThreeIntegration tests the threshold = 3 case

Checklist

  • No AI generated code was used in this PR

Related issues

@telegraf-tiger telegraf-tiger bot added area/opcua fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Jun 17, 2025
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Jun 18, 2025
@srebhan srebhan removed their assignment Jun 18, 2025
@mstrandboge mstrandboge merged commit eb25e0d into influxdata:master Jun 18, 2025
24 of 26 checks passed
@github-actions github-actions bot added this to the v1.35.1 milestone Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/opcua fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants