Playwright: use rust crypto for the bot user (#12708)

... because legacy crypto is legacy
pull/28217/head
Richard van der Hoff 2024-06-27 16:43:24 +01:00 committed by GitHub
parent b449dc835b
commit 8feaae66fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 10 deletions

View File

@ -45,7 +45,6 @@ test.describe("Device verification", () => {
// Create a new device for alice
aliceBotClient = new Bot(page, homeserver, {
rustCrypto: true,
bootstrapCrossSigning: true,
bootstrapSecretStorage: true,
});

View File

@ -45,10 +45,6 @@ export interface CreateBotOpts {
* Whether to generate cross-signing keys
*/
bootstrapCrossSigning?: boolean;
/**
* Whether to use the rust crypto impl. Defaults to false (for now!)
*/
rustCrypto?: boolean;
/**
* Whether to bootstrap the secret storage
*/
@ -188,11 +184,7 @@ export class Bot extends Client {
return cli;
}
if (opts.rustCrypto) {
await cli.initRustCrypto({ useIndexedDB: false });
} else {
await cli.initCrypto();
}
cli.setGlobalErrorOnUnknownDevices(false);
await cli.startClient();