File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/core/src/test/awsService/cloudWatchLogs/registry Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ describe('LiveTailSession', async function () {
9494 } )
9595
9696 it ( 'closes a started session' , async function ( ) {
97- sinon . stub ( CloudWatchLogsClient . prototype , 'send' ) . callsFake ( function ( ) {
97+ const startLiveTailStub = sinon . stub ( CloudWatchLogsClient . prototype , 'send' ) . callsFake ( function ( ) {
9898 return {
9999 responseStream : mockResponseStream ( ) ,
100100 }
@@ -103,6 +103,10 @@ describe('LiveTailSession', async function () {
103103 assert . strictEqual ( session . getLiveTailSessionDuration ( ) , 0 )
104104
105105 const returnedResponseStream = await session . startLiveTailSession ( )
106+ assert . strictEqual ( startLiveTailStub . calledOnce , true )
107+ const requestArgs = startLiveTailStub . getCall ( 0 ) . args
108+ assert . deepEqual ( requestArgs [ 0 ] . input , session . buildStartLiveTailCommand ( ) . input )
109+ assert . strictEqual ( requestArgs [ 1 ] . abortSignal !== undefined && ! requestArgs [ 1 ] . abortSignal . aborted , true )
106110 assert . strictEqual ( session . isAborted , false )
107111 assert . strictEqual ( clock . countTimers ( ) , 1 )
108112 assert . deepStrictEqual ( returnedResponseStream , mockResponseStream ( ) )
You can’t perform that action at this time.
0 commit comments