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 flappers #1014

Merged
merged 1 commit into from
May 27, 2019
Merged

Fix flappers #1014

merged 1 commit into from
May 27, 2019

Conversation

kozlovic
Copy link
Member

@kozlovic kozlovic commented May 25, 2019

  • TestSystemAccountConnectionUpdatesStopAfterNoLocal: I believe that
    the check on number of notifications was wrong. Since we did not
    consume the ones for the connect, the expected count after the
    disconnect is 8 instead of 4.

  • Possible fix GW tests complaining about number of outbound/inbound
    I think that it may be possible that connection does not succeed
    right away (remote to fully started, etc) and due to dial timeout
    and reconnect attempt delay, I suspect that when given a max time
    of 1sec to complete, it may not be enough.
    Quick change for now is to override to 2secs for now in the
    wait helpers. If that proves conclusive, we could remove the
    timeout given to these helpers.

  • TestGatewaySendAllSubsBadProtocol: used a t.Fatalf() in checkFor
    instead of return fmt.Errorf().

  • TestLeafNodeResetsMSGProto: this test is not about change to
    interest mode only, so to avoid possible mix of protos, delay
    a bit creation of gateway after creation of leaf node.

  • Some defer s.Shutdown() were missing

Signed-off-by: Ivan Kozlovic ivan@synadia.com

- TestSystemAccountConnectionUpdatesStopAfterNoLocal: I believe that
  the check on number of notifications was wrong. Since we did not
  consume the ones for the connect, the expected count after the
  disconnect is 8 instead of 4.

- Possible fix GW tests complaining about number of outbound/inbound
  I think that it may be possible that connection does not succeed
  right away (remote to fully started, etc) and due to dial timeout
  and reconnect attempt delay, I suspect that when given a max time
  of 1sec to complete, it may not be enough.
  Quick change for now is to override to 2secs for now in the
  wait helpers. If that proves conclusive, we could remove the
  timeout given to these helpers.

- TestGatewaySendAllSubsBadProtocol: used a t.Fatalf() in checkFor
  instead of return fmt.Errorf().

- TestLeafNodeResetsMSGProto: this test is not about change to
  interest mode only, so to avoid possible mix of protos, delay
  a bit creation of gateway after creation of leaf node.

- Some defer s.Shutdown() were missing

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@kozlovic kozlovic merged commit a16a534 into master May 27, 2019
@kozlovic kozlovic deleted the fix_flappers branch May 27, 2019 00:16
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.

None yet

2 participants