@@ -8,7 +8,6 @@ import path from 'path'
88import { isCloudDesktop , getEnvVars , getServiceEnvVarConfig , isAmazonLinux2 , isBeta } from '../../../shared/vscode/env'
99import { ChildProcess } from '../../../shared/utilities/processUtils'
1010import * as sinon from 'sinon'
11- import * as nodeFs from 'fs' // eslint-disable-line no-restricted-imports
1211import os from 'os'
1312import fs from '../../../shared/fs/fs'
1413import vscode from 'vscode'
@@ -110,20 +109,6 @@ describe('env', function () {
110109
111110 versionStub . returns ( '5.10.220-188.869.NOT_INTERNAL.x86_64' )
112111 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 ( )
127112 } )
128113
129114 it ( 'isCloudDesktop' , async function ( ) {
0 commit comments