Skip to content

Commit b703d4a

Browse files
authored
More slow test fixes (#3515)
We still seem to be suffering test timeouts. Hopefully this will fix the integ tests, where #3509 etc fix the unit tests.
1 parent d1dec4c commit b703d4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/integ/crypto/verification.spec.ts

+6
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ beforeAll(async () => {
6969
await global.Olm.init();
7070
});
7171

72+
// load the rust library. This can take a few seconds on a slow GH worker.
73+
beforeAll(async () => {
74+
const RustSdkCryptoJs = await require("@matrix-org/matrix-sdk-crypto-js");
75+
await RustSdkCryptoJs.initAsync();
76+
}, 10000);
77+
7278
afterEach(() => {
7379
// reset fake-indexeddb after each test, to make sure we don't leak connections
7480
// cf https://github.com/dumbmatter/fakeIndexedDB#wipingresetting-the-indexeddb-for-a-fresh-state

0 commit comments

Comments
 (0)