-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
There was a problem hiding this 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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool util! 🎉
There was a problem hiding this comment.
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
test/unit/sdam/topology.test.js
Outdated
new SrvPollingEvent([{ priority: 1, weight: 1, port: 2, name: 'fake' }]) | ||
); | ||
|
||
// The srv event starts a monitor that we don't actually want running |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, good idea 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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.