From 84f188de8404dc38d01805aa8c82db8c7b7ec367 Mon Sep 17 00:00:00 2001 From: tyler-cai-microsoft <90650728+tyler-cai-microsoft@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:07:55 -0700 Subject: [PATCH] Make test less likely to hang on container creation (#22290) [AB#10957](https://dev.azure.com/fluidframework/235294da-091d-4c29-84fc-cdfc3d90890b/_workitems/edit/10957) Make the container less likely to hang on container creation. --- .../test/test-end-to-end-tests/src/test/rootDatastores.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/test/test-end-to-end-tests/src/test/rootDatastores.spec.ts b/packages/test/test-end-to-end-tests/src/test/rootDatastores.spec.ts index 8fed82201d49..1c084c389f24 100644 --- a/packages/test/test-end-to-end-tests/src/test/rootDatastores.spec.ts +++ b/packages/test/test-end-to-end-tests/src/test/rootDatastores.spec.ts @@ -18,6 +18,7 @@ import { ITestObjectProvider, getContainerEntryPointBackCompat, summarizeNow, + waitForContainerConnection, } from "@fluidframework/test-utils/internal"; import { TestSnapshotCache } from "../testSnapshotCache.js"; @@ -46,6 +47,7 @@ describeCompat("Named root data stores", "FullCompat", (getTestObjectProvider) = provider = getTestObjectProvider({ persistedCache: testSnapshotCache }); container1 = await provider.makeTestContainer(testContainerConfig); dataObject1 = await getContainerEntryPointBackCompat(container1); + await waitForContainerConnection(container1); await provider.ensureSynchronized();