@@ -49,10 +49,7 @@ export async function setupVSCodeTestInstance(): Promise<string> {
49
49
50
50
export async function invokeVSCodeCli ( vsCodeExecutablePath : string , args : string [ ] ) : Promise < string > {
51
51
const [ cli , ...cliArgs ] = resolveCliArgsFromVSCodeExecutablePath ( vsCodeExecutablePath )
52
- // Disable sandbox to avoid: "Running as root without --no-sandbox is not supported".
53
- // https://github.com/aws/aws-toolkit-vscode/issues/3550
54
- // https://crbug.com/638180
55
- const cmdArgs = [ '--no-sandbox' , ...cliArgs , ...args ]
52
+ const cmdArgs = [ ...cliArgs , ...args ]
56
53
57
54
// Workaround: set --user-data-dir to avoid this error in CI:
58
55
// "You are trying to start Visual Studio Code as a super user …"
@@ -133,11 +130,6 @@ async function setupVSCode(): Promise<string> {
133
130
}
134
131
135
132
export async function runToolkitTests ( suiteName : string , relativeEntryPoint : string ) {
136
- // Disable sandbox to avoid: "Running as root without --no-sandbox is not supported".
137
- // https://github.com/aws/aws-toolkit-vscode/issues/3550
138
- // https://crbug.com/638180
139
- const noSandboxArgs = [ '--no-sandbox' , '--disable-gpu-sandbox' ]
140
-
141
133
try {
142
134
console . log ( `Running ${ suiteName } test suite...` )
143
135
const vsCodeExecutablePath = await setupVSCode ( )
@@ -162,7 +154,7 @@ export async function runToolkitTests(suiteName: string, relativeEntryPoint: str
162
154
vscodeExecutablePath : vsCodeExecutablePath ,
163
155
extensionDevelopmentPath : cwd ,
164
156
extensionTestsPath : testEntrypoint ,
165
- launchArgs : [ ...noSandboxArgs , ... disableExtensions , workspacePath , disableWorkspaceTrust ] ,
157
+ launchArgs : [ ...disableExtensions , workspacePath , disableWorkspaceTrust ] ,
166
158
extensionTestsEnv : {
167
159
[ 'DEVELOPMENT_PATH' ] : cwd ,
168
160
[ 'AWS_TOOLKIT_AUTOMATION' ] : suiteName ,
0 commit comments