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 @@ -247,7 +247,8 @@ class TestNSHTTPCookieStorage: XCTestCase {
247
247
task. launchPath = bundlePath. substring ( to: pathIndex!) + " /xdgTestHelper/xdgTestHelper "
248
248
#endif
249
249
var environment = ProcessInfo . processInfo. environment
250
- environment [ " XDG_CONFIG_HOME " ] = NSHomeDirectory ( ) + " /TestXDG "
250
+ let testPath = NSHomeDirectory ( ) + " /TestXDG "
251
+ environment [ " XDG_CONFIG_HOME " ] = testPath
251
252
task. environment = environment
252
253
// Launch the task
253
254
task. launch ( )
@@ -256,5 +257,6 @@ class TestNSHTTPCookieStorage: XCTestCase {
256
257
XCTAssertEqual ( status, 0 )
257
258
let terminationReason = task. terminationReason
258
259
XCTAssertEqual ( terminationReason, Process . TerminationReason. exit)
260
+ try ? fm. removeItem ( atPath: testPath)
259
261
}
260
262
}
You can’t perform that action at this time.
0 commit comments