Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James committed Mar 21, 2024
1 parent bb7ce8f commit 1239399
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tests:
expectEvents:
- client: *client
eventType: sdam
ignoreExtraEvents: true
ignoreExtraEvents: false
events:
- topologyOpeningEvent: {}
- topologyDescriptionChangedEvent: # unknown -> replset no primary
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tests:
- topologyDescriptionChangedEvent
- topologyOpeningEvent
- topologyClosedEvent
useMultipleMongoses: true
# ensure the topology has been fully discovered before closing the client.
# expected events are initial cluster type change from unknown to sharded and connect events
# for each of 2 servers
Expand All @@ -35,7 +36,7 @@ tests:
expectEvents:
- client: *client
eventType: sdam
ignoreExtraEvents: true
ignoreExtraEvents: false
events:
- topologyOpeningEvent: {}
- topologyDescriptionChangedEvent: # unknown -> unknown w disconnected server
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ tests:
expectEvents:
- client: *client
eventType: sdam
ignoreExtraEvents: true
ignoreExtraEvents: false
events:
- topologyOpeningEvent: {}
- topologyDescriptionChangedEvent: # unknown -> unknown w disconnected server
previousDescription:
type: "Unknown"
currentDescription: {}
newDescription:
type: "Unknown"
- serverOpeningEvent: {}
- topologyDescriptionChangedEvent: # unknown w disconnected server -> standalone
previousDescription:
Expand Down

0 comments on commit 1239399

Please sign in to comment.