From 28abae60a6cc3c7a2c46ea580df605b7fa5cc09f Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Wed, 8 Mar 2023 17:10:23 +0100 Subject: [PATCH] Fix breadcrumb store test (#10330) --- test/stores/BreadcrumbsStore-test.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/stores/BreadcrumbsStore-test.ts b/test/stores/BreadcrumbsStore-test.ts index 9b86e789df..8f6b4120cb 100644 --- a/test/stores/BreadcrumbsStore-test.ts +++ b/test/stores/BreadcrumbsStore-test.ts @@ -16,7 +16,6 @@ limitations under the License. import { mocked } from "jest-mock"; import { MatrixClient, Room } from "matrix-js-sdk/src/matrix"; -import { act } from "react-dom/test-utils"; import { createTestClient, flushPromises, setupAsyncStoreWithClient } from "../test-utils"; import SettingsStore from "../../src/settings/SettingsStore"; @@ -185,9 +184,7 @@ describe("BreadcrumbsStore", () => { ); // Wait for event dispatch to happen - await act(async () => { - await flushPromises(); - }); + await flushPromises(); } /**