Skip to content

Commit

Permalink
Fix test running when test host is running
Browse files Browse the repository at this point in the history
Summary:
When running tests locally in VS Code it's easy for a user to disconnect the debugger without quitting the test host app, and because the simulator is headless, this leaves the test host running with no way to quit it. Because the test host is running, future test runs will always fail because the process is "already running."

This diff changes test runs to kill and relaunch the test host if it is already running, so a user can continue to run tests.

Differential Revision: D61735347

fbshipit-source-id: 1f6230daf2d89b1f85da4f1089e54f04eeb0ecab
  • Loading branch information
fbgerrit authored and facebook-github-bot committed Aug 27, 2024
1 parent 413c11b commit 5c5e3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CompanionLib/Utility/FBXCTestDescriptor.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
environment:environment ?: @{}
waitForDebugger:waitForDebugger
io:io
launchMode:FBApplicationLaunchModeFailIfRunning];
launchMode:FBApplicationLaunchModeRelaunchIfRunning];
}];
}

Expand Down

0 comments on commit 5c5e3bd

Please sign in to comment.