@@ -56,10 +56,10 @@ describe('TailLogGroup', function () {
5656 getSessionUpdateFrame ( false , `${ testMessage } -2` , startTimestamp + 2000 ) ,
5757 getSessionUpdateFrame ( false , `${ testMessage } -3` , startTimestamp + 3000 ) ,
5858 ]
59- //Returns the configured update frames and then indefinitely blocks.
60- //This keeps the stream 'open', simulating an open network stream waiting for new events.
61- //If the stream were to close, the event listeners in the TailLogGroup command would dispose,
62- //breaking the 'closes tab closes session' assertions this test makes.
59+ // Returns the configured update frames and then indefinitely blocks.
60+ // This keeps the stream 'open', simulating an open network stream waiting for new events.
61+ // If the stream were to close, the event listeners in the TailLogGroup command would dispose,
62+ // breaking the 'closes tab closes session' assertions this test makes.
6363 async function * generator ( ) : AsyncIterable < StartLiveTailResponseStream > {
6464 for ( const frame of updateFrames ) {
6565 yield frame
@@ -78,21 +78,21 @@ describe('TailLogGroup', function () {
7878 wizardSpy = sandbox . stub ( TailLogGroupWizard . prototype , 'run' ) . callsFake ( async function ( ) {
7979 return getTestWizardResponse ( )
8080 } )
81- //Set maxLines to 1.
81+ // Set maxLines to 1.
8282 cloudwatchSettingsSpy = sandbox . stub ( CloudWatchLogsSettings . prototype , 'get' ) . callsFake ( ( ) => {
8383 return 1
8484 } )
8585
86- //The mock stream doesn't 'close', causing tailLogGroup to not return. If we `await`, it will never resolve.
87- //Run it in the background and use waitUntil to poll its state.
86+ // The mock stream doesn't 'close', causing tailLogGroup to not return. If we `await`, it will never resolve.
87+ // Run it in the background and use waitUntil to poll its state.
8888 void tailLogGroup ( registry , testSource , codeLensProvider , {
8989 groupName : testLogGroup ,
9090 regionName : testRegion ,
9191 } )
9292 await waitUntil ( async ( ) => registry . size !== 0 , { interval : 100 , timeout : 1000 } )
9393
94- //registry is asserted to have only one entry, so this is assumed to be the session that was
95- //started in this test.
94+ // registry is asserted to have only one entry, so this is assumed to be the session that was
95+ // started in this test.
9696 let sessionUri : vscode . Uri | undefined
9797 registry . forEach ( ( session ) => ( sessionUri = session . uri ) )
9898 if ( sessionUri === undefined ) {
@@ -104,8 +104,8 @@ describe('TailLogGroup', function () {
104104 assert . strictEqual ( startLiveTailSessionSpy . calledOnce , true )
105105 assert . strictEqual ( registry . size , 1 )
106106
107- //Validate writing to the document.
108- //MaxLines is set to 1, and "testMessage3" is the last event in the stream, its contents should be the only thing in the doc.
107+ // Validate writing to the document.
108+ // MaxLines is set to 1, and "testMessage3" is the last event in the stream, its contents should be the only thing in the doc.
109109 const window = getTestWindow ( )
110110 const document = window . activeTextEditor ?. document
111111 assert . strictEqual ( sessionUri . toString ( ) , document ?. uri . toString ( ) )
@@ -115,7 +115,7 @@ describe('TailLogGroup', function () {
115115 )
116116 assert . strictEqual ( doesDocumentContainExpectedContent , true )
117117
118- //Test that closing all tabs the session's document is open in will cause the session to close
118+ // Test that closing all tabs the session's document is open in will cause the session to close
119119 let tabs : vscode . Tab [ ] = [ ]
120120 window . tabGroups . all . forEach ( ( tabGroup ) => {
121121 tabs = tabs . concat ( getLiveTailSessionTabsFromTabGroup ( tabGroup , sessionUri ! ) )
0 commit comments