Skip to content

Commit

Permalink
Spec: stabilize and improve simctl integration examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoody committed Dec 30, 2016
1 parent 33bd820 commit 70b87ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/integration/simctl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
end

it "#wait_for_shutdown" do
RunLoop::CoreSimulator.quit_simulator
core_sim = RunLoop::CoreSimulator.new(device, app)
core_sim.launch_simulator
RunLoop::CoreSimulator.quit_simulator
expect(simctl.wait_for_shutdown(device, 10.0, 0)).to be_truthy
end

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

device.simulator_wait_for_stable_state

core_sim.launch_simulator

timeout = RunLoop::CoreSimulator::DEFAULT_OPTIONS[:install_app_timeout]
Expand Down

0 comments on commit 70b87ba

Please sign in to comment.