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