File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,8 @@ class TestNSHTTPCookieStorage: XCTestCase {
243
243
let task = Process ( )
244
244
task. launchPath = bundlePath. substring ( to: pathIndex!) + " /xdgTestHelper/xdgTestHelper "
245
245
var environment = ProcessInfo . processInfo. environment
246
- environment [ " XDG_CONFIG_HOME " ] = NSHomeDirectory ( ) + " /TestXDG "
246
+ let testPath = NSHomeDirectory ( ) + " /TestXDG "
247
+ environment [ " XDG_CONFIG_HOME " ] = testPath
247
248
task. environment = environment
248
249
// Launch the task
249
250
task. launch ( )
@@ -252,5 +253,6 @@ class TestNSHTTPCookieStorage: XCTestCase {
252
253
XCTAssertEqual ( status, 0 )
253
254
let terminationReason = task. terminationReason
254
255
XCTAssertEqual ( terminationReason, Process . TerminationReason. exit)
256
+ try ? fm. removeItem ( atPath: testPath)
255
257
}
256
258
}
You can’t perform that action at this time.
0 commit comments