@@ -8,7 +8,6 @@ import path from 'path'
8
8
import { isCloudDesktop , getEnvVars , getServiceEnvVarConfig , isAmazonLinux2 , isBeta } from '../../../shared/vscode/env'
9
9
import { ChildProcess } from '../../../shared/utilities/processUtils'
10
10
import * as sinon from 'sinon'
11
- import * as nodeFs from 'fs' // eslint-disable-line no-restricted-imports
12
11
import os from 'os'
13
12
import fs from '../../../shared/fs/fs'
14
13
import vscode from 'vscode'
@@ -110,20 +109,6 @@ describe('env', function () {
110
109
111
110
versionStub . returns ( '5.10.220-188.869.NOT_INTERNAL.x86_64' )
112
111
assert . strictEqual ( isAmazonLinux2 ( ) , false )
113
-
114
- // Test with container environment (Ubuntu container on AL2 host)
115
- versionStub . returns ( '5.10.236-227.928.amzn2.x86_64' )
116
- const existsStub = sandbox . stub ( nodeFs , 'existsSync' ) . returns ( true )
117
- const readFileStub = sandbox . stub ( nodeFs , 'readFileSync' ) . returns ( 'ID="ubuntu"\nVERSION_ID="20.04"' )
118
- assert . strictEqual ( isAmazonLinux2 ( ) , false , 'Should return false for Ubuntu container on AL2 host' )
119
-
120
- // Test with actual AL2 in /etc/os-release
121
- readFileStub . returns ( 'ID="amzn"\nVERSION_ID="2"' )
122
- assert . strictEqual ( isAmazonLinux2 ( ) , true , 'Should return true for actual AL2' )
123
-
124
- // Clean up stubs
125
- existsStub . restore ( )
126
- readFileStub . restore ( )
127
112
} )
128
113
129
114
it ( 'isCloudDesktop' , async function ( ) {
0 commit comments