@@ -113,7 +113,7 @@ suite('Debug - Attach to Child Process', () => {
113
113
sinon . assert . calledOnceWithExactly ( startDebuggingStub , undefined , sinon . match . any , sinon . match . any ) ;
114
114
sinon . assert . notCalled ( showErrorMessageStub ) ;
115
115
} ) ;
116
- test ( 'Validate debug config is passed as is ' , async ( ) => {
116
+ test ( 'Validate debug config is passed with the correct params ' , async ( ) => {
117
117
const data : LaunchRequestArguments | AttachRequestArguments = {
118
118
request : 'attach' ,
119
119
type : 'debugpy' ,
@@ -136,7 +136,7 @@ suite('Debug - Attach to Child Process', () => {
136
136
sinon . assert . calledOnceWithExactly ( startDebuggingStub , undefined , sinon . match . any , sinon . match . any ) ;
137
137
const [ , secondArg , thirdArg ] = startDebuggingStub . args [ 0 ] ;
138
138
expect ( secondArg ) . to . deep . equal ( debugConfig ) ;
139
- expect ( thirdArg ) . to . deep . equal ( session ) ;
139
+ expect ( thirdArg ) . to . deep . equal ( { parentSession : session , lifecycleManagedByParent : true } ) ;
140
140
sinon . assert . notCalled ( showErrorMessageStub ) ;
141
141
} ) ;
142
142
test ( 'Pass data as is if data is attach debug configuration' , async ( ) => {
@@ -157,7 +157,7 @@ suite('Debug - Attach to Child Process', () => {
157
157
sinon . assert . calledOnceWithExactly ( startDebuggingStub , undefined , sinon . match . any , sinon . match . any ) ;
158
158
const [ , secondArg , thirdArg ] = startDebuggingStub . args [ 0 ] ;
159
159
expect ( secondArg ) . to . deep . equal ( debugConfig ) ;
160
- expect ( thirdArg ) . to . deep . equal ( session ) ;
160
+ expect ( thirdArg ) . to . deep . equal ( { parentSession : session , lifecycleManagedByParent : true } ) ;
161
161
sinon . assert . notCalled ( showErrorMessageStub ) ;
162
162
} ) ;
163
163
test ( 'Validate debug config when parent/root parent was attached' , async ( ) => {
@@ -185,7 +185,7 @@ suite('Debug - Attach to Child Process', () => {
185
185
sinon . assert . calledOnceWithExactly ( startDebuggingStub , undefined , sinon . match . any , sinon . match . any ) ;
186
186
const [ , secondArg , thirdArg ] = startDebuggingStub . args [ 0 ] ;
187
187
expect ( secondArg ) . to . deep . equal ( debugConfig ) ;
188
- expect ( thirdArg ) . to . deep . equal ( session ) ;
188
+ expect ( thirdArg ) . to . deep . equal ( { parentSession : session , lifecycleManagedByParent : true } ) ;
189
189
sinon . assert . notCalled ( showErrorMessageStub ) ;
190
190
} ) ;
191
191
} ) ;
0 commit comments