Skip to content

Commit f0b20fa

Browse files
thymikeeclaude
andcommitted
test(host): drop the iOS recording scenario's process-env block now that capture-kit takes the host
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 7cb529c commit f0b20fa

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎test/integration/provider-scenarios/ios-record-trace.test.ts‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { PROVIDER_SCENARIO_IOS_DEVICE, PROVIDER_SCENARIO_IOS_SIMULATOR } from '.
1717
import {
1818
createProviderIosSimulatorRecordingProcess,
1919
createProviderScenarioHarness,
20-
restoreEnv,
2120
withProviderScenarioTempDir,
2221
} from './harness.ts';
2322
import {
@@ -112,13 +111,6 @@ test('iOS simulator recording reports host contention and recovers through the f
112111
appleSimulatorScreenRecordingTransport: () => recordingTransport,
113112
deviceInventoryProvider: async () => [PROVIDER_SCENARIO_IOS_SIMULATOR],
114113
});
115-
// capture-kit's recording finalizer still reads PATH and the Swift cache from the process
116-
// (#3777 moves capture-kit to the host), so the scenario sets both there as well.
117-
const previousPath = process.env.PATH;
118-
const previousSwiftCacheDir = process.env.AGENT_DEVICE_SWIFT_CACHE_DIR;
119-
process.env.PATH = tmpDir;
120-
process.env.AGENT_DEVICE_SWIFT_CACHE_DIR = path.join(tmpDir, 'swift-cache');
121-
122114
try {
123115
const open = await daemon.callCommand('open', ['com.apple.Preferences'], {
124116
platform: 'ios',
@@ -199,8 +191,6 @@ test('iOS simulator recording reports host contention and recovers through the f
199191
);
200192
} finally {
201193
await daemon.close();
202-
restoreEnv('PATH', previousPath);
203-
restoreEnv('AGENT_DEVICE_SWIFT_CACHE_DIR', previousSwiftCacheDir);
204194
}
205195
},
206196
);

0 commit comments

Comments
 (0)