Skip to content

Commit db47a1e

Browse files
committed
test(ec2): unreliable test "SSH Agent can start the agent on windows"
Problem: SSH Agent can start the agent on windows: Error: Test length exceeded max duration: 30 seconds [No Pending UI Elements Found] at Timeout._onTimeout (D:\a\aws-toolkit-vscode\aws-toolkit-vscode\packages\core\src\test\setupUtil.ts:46:32) Solution: - retry 2 times. - set short timeout.
1 parent 91859e2 commit db47a1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/test/shared/extensions/ssh.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ import { isWin } from '../../../shared/vscode/env'
1515

1616
describe('SSH Agent', function () {
1717
it('can start the agent on windows', async function () {
18+
this.timeout(10000)
19+
this.retries(2)
20+
1821
// TODO: we should also skip this test if not running in CI
1922
// Local machines probably won't have admin permissions in the spawned processes
2023
if (process.platform !== 'win32') {

0 commit comments

Comments
 (0)