@@ -83,7 +83,11 @@ function getConnectionString(username?: string, password?: string): string {
8383}
8484
8585describe ( 'e2e AWS AUTH' , function ( ) {
86- this . timeout ( 60_000 ) ; // AWS auth tests can take longer than the default timeout in CI
86+ // AWS auth tests can take longer than the default timeout in CI
87+ // DNS resolution for many hosts in particular can be time-intensive in some
88+ // CI environments
89+ this . timeout ( 80_000 ) ;
90+ const initialWaitForPromptTimeoutOptions = { timeout : 60_000 } ;
8791 let expectedAssumedRole : string ;
8892
8993 before ( function ( ) {
@@ -128,7 +132,9 @@ describe('e2e AWS AUTH', function () {
128132 AWS_SECRET_ACCESS_KEY ,
129133 ] ,
130134 } ) ;
131- const result = await shell . waitForPromptOrExit ( ) ;
135+ const result = await shell . waitForPromptOrExit (
136+ initialWaitForPromptTimeoutOptions
137+ ) ;
132138 expect ( result . state ) . to . equal ( 'prompt' ) ;
133139
134140 const connectionStatus = await shell . executeLine (
@@ -150,7 +156,9 @@ describe('e2e AWS AUTH', function () {
150156 tokenDetails . token ,
151157 ] ,
152158 } ) ;
153- const result = await shell . waitForPromptOrExit ( ) ;
159+ const result = await shell . waitForPromptOrExit (
160+ initialWaitForPromptTimeoutOptions
161+ ) ;
154162 expect ( result . state ) . to . equal ( 'prompt' ) ;
155163
156164 const connectionStatus = await shell . executeLine (
@@ -165,7 +173,9 @@ describe('e2e AWS AUTH', function () {
165173 const shell = this . startTestShell ( {
166174 args : [ getConnectionString ( AWS_ACCESS_KEY_ID , AWS_SECRET_ACCESS_KEY ) ] ,
167175 } ) ;
168- const result = await shell . waitForPromptOrExit ( ) ;
176+ const result = await shell . waitForPromptOrExit (
177+ initialWaitForPromptTimeoutOptions
178+ ) ;
169179 expect ( result . state ) . to . equal ( 'prompt' ) ;
170180
171181 const connectionStatus = await shell . executeLine (
@@ -186,7 +196,9 @@ describe('e2e AWS AUTH', function () {
186196 ) } `,
187197 ] ,
188198 } ) ;
189- const result = await shell . waitForPromptOrExit ( ) ;
199+ const result = await shell . waitForPromptOrExit (
200+ initialWaitForPromptTimeoutOptions
201+ ) ;
190202 expect ( result . state ) . to . equal ( 'prompt' ) ;
191203
192204 const connectionStatus = await shell . executeLine (
@@ -208,7 +220,9 @@ describe('e2e AWS AUTH', function () {
208220 AWS_SECRET_ACCESS_KEY ,
209221 } ,
210222 } ) ;
211- const result = await shell . waitForPromptOrExit ( ) ;
223+ const result = await shell . waitForPromptOrExit (
224+ initialWaitForPromptTimeoutOptions
225+ ) ;
212226 expect ( result . state ) . to . equal ( 'prompt' ) ;
213227
214228 const connectionStatus = await shell . executeLine (
@@ -228,7 +242,9 @@ describe('e2e AWS AUTH', function () {
228242 AWS_SESSION_TOKEN : tokenDetails . token ,
229243 } ,
230244 } ) ;
231- const result = await shell . waitForPromptOrExit ( ) ;
245+ const result = await shell . waitForPromptOrExit (
246+ initialWaitForPromptTimeoutOptions
247+ ) ;
232248 expect ( result . state ) . to . equal ( 'prompt' ) ;
233249
234250 const connectionStatus = await shell . executeLine (
@@ -254,7 +270,9 @@ describe('e2e AWS AUTH', function () {
254270 AWS_SECRET_ACCESS_KEY : 'invalid' ,
255271 } ,
256272 } ) ;
257- const result = await shell . waitForPromptOrExit ( ) ;
273+ const result = await shell . waitForPromptOrExit (
274+ initialWaitForPromptTimeoutOptions
275+ ) ;
258276 expect ( result . state ) . to . equal ( 'prompt' ) ;
259277
260278 const connectionStatus = await shell . executeLine (
@@ -282,7 +300,9 @@ describe('e2e AWS AUTH', function () {
282300 AWS_SESSION_TOKEN : 'invalid' ,
283301 } ,
284302 } ) ;
285- const result = await shell . waitForPromptOrExit ( ) ;
303+ const result = await shell . waitForPromptOrExit (
304+ initialWaitForPromptTimeoutOptions
305+ ) ;
286306 expect ( result . state ) . to . equal ( 'prompt' ) ;
287307
288308 const connectionStatus = await shell . executeLine (
0 commit comments