@@ -496,27 +496,25 @@ describe('SharedCredentialsProvider', async function () {
496496 assert . strictEqual ( creds . sessionToken , 'token' )
497497 } )
498498
499- for ( const _ of Array . from ( { length : 1000 } ) ) {
500- it ( 'assumes role with mfa token' , async function ( ) {
501- const sections = await createTestSections ( `
499+ it ( 'assumes role with mfa token' , async function ( ) {
500+ const sections = await createTestSections ( `
502501 ${ defaultSection }
503502 [profile assume]
504503 source_profile = default
505504 role_arn = testarn
506505 mfa_serial= mfaSerialToken
507506 ` )
508- const sut = new SharedCredentialsProvider ( 'assume' , sections )
509-
510- getTestWindow ( ) . onDidShowInputBox ( ( inputBox ) => {
511- inputBox . acceptValue ( 'mfaToken' )
512- } )
507+ const sut = new SharedCredentialsProvider ( 'assume' , sections )
513508
514- const creds = await sut . getCredentials ( )
515- assert . strictEqual ( creds . accessKeyId , 'id' )
516- assert . strictEqual ( creds . secretAccessKey , 'secret' )
517- assert . strictEqual ( creds . sessionToken , 'token' )
509+ getTestWindow ( ) . onDidShowInputBox ( ( inputBox ) => {
510+ inputBox . acceptValue ( 'mfaToken' )
518511 } )
519- }
512+
513+ const creds = await sut . getCredentials ( )
514+ assert . strictEqual ( creds . accessKeyId , 'id' )
515+ assert . strictEqual ( creds . secretAccessKey , 'secret' )
516+ assert . strictEqual ( creds . sessionToken , 'token' )
517+ } )
520518
521519 it ( 'does not assume role when no roleArn is present' , async function ( ) {
522520 const sut = new SharedCredentialsProvider ( 'default' , await createTestSections ( defaultSection ) )
0 commit comments