Fix breadcrumb store test (#10330)

pull/28217/head
Michael Weimann 2023-03-08 17:10:23 +01:00 committed by GitHub
parent 2b39eac7b5
commit 28abae60a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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();
}
/**