File tree Expand file tree Collapse file tree
test/integration/linux-e2e Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ async function runCommandDiscoveryEvidence(context: LinuxContext): Promise<void>
106106 assert . equal ( replay . json ?. data ?. sessionActive , true , JSON . stringify ( replay . json ) ) ;
107107 assert . equal ( typeof replay . json ?. data ?. session , 'string' , JSON . stringify ( replay . json ) ) ;
108108 context . session = replay . json . data . session ;
109+ context . sessionOpen = true ;
109110 verifyCommand ( context , C . replay , 'the Linux command-evidence script passes through replay' ) ;
110111}
111112
@@ -233,7 +234,7 @@ async function finalize(context: LinuxContext): Promise<unknown> {
233234}
234235
235236async function closeIfOpen ( context : LinuxContext ) : Promise < void > {
236- if ( ! ( await sessionExists ( context ) ) ) return ;
237+ if ( ! context . sessionOpen && ! ( await sessionExists ( context ) ) ) return ;
237238 await runStep ( context , 'close the Linux command-evidence session' , [ 'close' ] ) ;
238239}
239240
You can’t perform that action at this time.
0 commit comments