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(NODE-3272)!: emit correct event type when SRV Polling #2825

Merged
merged 7 commits into from Jun 3, 2021

Conversation

nbbeeken
Copy link
Contributor

Corrects the event type emitted from the SRV polling listener on the Topology.

Also:
Skipped the cursor tests and marked them with the unskip ticket, and corrected the visibility on session properties.

@nbbeeken nbbeeken requested review from a team, durran, emadum and dariakp and removed request for a team May 28, 2021 19:56
@nbbeeken nbbeeken marked this pull request as ready for review May 28, 2021 19:56
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 Looks like this also fixes NODE-3269?

@@ -246,12 +246,25 @@ class EventCollector {
}
}

function getSymbolFrom(target, symbolName, assertExists = true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Cool util! 🎉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, and good catch on the other ticket I'll be sure to note it in the merge

new SrvPollingEvent([{ priority: 1, weight: 1, port: 2, name: 'fake' }])
);

// The srv event starts a monitor that we don't actually want running
Copy link
Contributor

Choose a reason for hiding this comment

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

let's move the cleanup into an afterEach and iterate over all servers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good idea 🚀

@nbbeeken nbbeeken requested a review from dariakp June 3, 2021 16:41
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

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

lgtm

@nbbeeken nbbeeken merged commit 579119f into 4.0 Jun 3, 2021
@nbbeeken nbbeeken deleted the NODE-3272/Topology-events branch June 3, 2021 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants