Skip to content

Commit 0cb253a

Browse files
committed
fix(suite-native): flaky e2e tests
1 parent 444c895 commit 0cb253a

File tree

1 file changed

+3
-1
lines changed
  • packages/trezor-user-env-link/src

1 file changed

+3
-1
lines changed

packages/trezor-user-env-link/src/api.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export const DEFAULT_BRIDGE_VERSION = '2.0.33';
9393

9494
// There's an ongoing problem with debug link & button requests race conditions
9595
// Adding a delay to workaround this issue temporarily
96-
const EMU_RACE_CONDITION_WORKAROUND_DELAY = 50;
96+
// https://github.com/trezor/trezor-suite/issues/23270
97+
const EMU_RACE_CONDITION_WORKAROUND_DELAY = 200;
9798

9899
export class TrezorUserEnvLinkClass extends TypedEmitter<WebsocketClientEvents> {
99100
private client: WebsocketClient;
@@ -321,6 +322,7 @@ export class TrezorUserEnvLinkClass extends TypedEmitter<WebsocketClientEvents>
321322
return null;
322323
}
323324
async selectNumOfWordsEmu(num: number) {
325+
await new Promise(resolve => setTimeout(resolve, EMU_RACE_CONDITION_WORKAROUND_DELAY * 2));
324326
await this.client.send({ type: 'emulator-select-num-of-words', num });
325327

326328
return null;

0 commit comments

Comments
 (0)