Skip to content

Commit 70b87ba

Browse files
committed
Spec: stabilize and improve simctl integration examples
1 parent 33bd820 commit 70b87ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/integration/simctl_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
end
1616

1717
it "#wait_for_shutdown" do
18+
RunLoop::CoreSimulator.quit_simulator
19+
core_sim = RunLoop::CoreSimulator.new(device, app)
20+
core_sim.launch_simulator
21+
RunLoop::CoreSimulator.quit_simulator
1822
expect(simctl.wait_for_shutdown(device, 10.0, 0)).to be_truthy
1923
end
2024

@@ -23,8 +27,6 @@
2327
delay = RunLoop::CoreSimulator::WAIT_FOR_SIMULATOR_STATE_INTERVAL
2428
expect(simctl.erase(device, timeout, delay)).to be_truthy
2529

26-
device.simulator_wait_for_stable_state
27-
2830
core_sim.launch_simulator
2931

3032
timeout = RunLoop::CoreSimulator::DEFAULT_OPTIONS[:install_app_timeout]

0 commit comments

Comments
 (0)