@@ -80,15 +80,15 @@ suite('Attach Debugger - Experimental', () => {
80
80
type : 'pythonExperimental' ,
81
81
port : port ,
82
82
host : 'localhost' ,
83
- logToFile : true ,
83
+ logToFile : false ,
84
84
debugOptions : [ DebugOptions . RedirectOutput ]
85
85
} ;
86
86
const serviceContainer = TypeMoq . Mock . ofType < IServiceContainer > ( ) ;
87
87
serviceContainer . setup ( c => c . get ( IPlatformService , TypeMoq . It . isAny ( ) ) ) . returns ( ( ) => new PlatformService ( ) ) ;
88
88
const configProvider = new PythonV2DebugConfigurationProvider ( serviceContainer . object ) ;
89
89
90
- const launchArgs = await configProvider . resolveDebugConfiguration ( { index : 0 , name : 'root' , uri : Uri . file ( localRoot ) } , options ) ;
91
- const attachPromise = debugClient . attachRequest ( launchArgs ) ;
90
+ await configProvider . resolveDebugConfiguration ( { index : 0 , name : 'root' , uri : Uri . file ( localRoot ) } , options ) ;
91
+ const attachPromise = debugClient . attachRequest ( options ) ;
92
92
93
93
await Promise . all ( [
94
94
initializePromise ,
@@ -136,12 +136,12 @@ suite('Attach Debugger - Experimental', () => {
136
136
} ) ;
137
137
test ( 'Confirm local and remote paths are translated' , async function ( ) {
138
138
this . timeout ( 20000 ) ;
139
- this . retries ( 0 ) ;
140
139
// Lets skip this test on AppVeyor (very flaky on AppVeyor).
141
140
if ( IS_APPVEYOR ) {
142
141
return ;
143
142
}
144
143
144
+ // If tests are running on windows, then treat debug client as a unix client and remote process as current OS.
145
145
const localWorkspace = IS_WINDOWS ? '/home/user/Desktop/project/src' : 'C:\\Project\\src' ;
146
146
const pathSeparator = IS_WINDOWS ? '/' : '\\' ;
147
147
await testAttachingToRemoteProcess ( localWorkspace , path . dirname ( fileToDebug ) , pathSeparator ) ;
0 commit comments