From 86f8141c634abbae316e71869bfff882033c2e67 Mon Sep 17 00:00:00 2001 From: Warren James Date: Fri, 5 Apr 2024 16:34:00 -0400 Subject: [PATCH] fix test --- ...edEventsForClient-topologyDescriptionChangedEvent.json | 8 ++++---- ...tedEventsForClient-topologyDescriptionChangedEvent.yml | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.json b/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.json index 4f4b017ad4..cf7bd60826 100644 --- a/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.json +++ b/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.json @@ -21,6 +21,9 @@ { "client": { "id": "client", + "uriOptions": { + "directConnection": true + }, "observeEvents": [ "topologyDescriptionChangedEvent" ] @@ -47,16 +50,13 @@ "eventType": "sdam", "ignoreExtraEvents": true, "events": [ - { - "topologyOpeningEvent": {} - }, { "topologyDescriptionChangedEvent": { "previousDescription": { "type": "Unknown" }, "newDescription": { - "type": "ReplicaSetWithPrimary" + "type": "Single" } } } diff --git a/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.yml b/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.yml index ef7454d135..c8dacc391e 100644 --- a/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.yml +++ b/source/unified-test-format/tests/valid-pass/expectedEventsForClient-topologyDescriptionChangedEvent.yml @@ -16,10 +16,10 @@ tests: entities: - client: id: &client client + uriOptions: + directConnection: true observeEvents: - topologyDescriptionChangedEvent - # ensure the topology has been fully discovered before closing the client. - # expected events are initial server discovery and 3 server connect events. - name: waitForEvent object: testRunner arguments: @@ -32,10 +32,9 @@ tests: eventType: sdam ignoreExtraEvents: true events: - - topologyOpeningEvent: {} - topologyDescriptionChangedEvent: previousDescription: type: "Unknown" newDescription: - type: "ReplicaSetWithPrimary" + type: "Single"