summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional/win32_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared/functional/win32_service.rb')
-rw-r--r--spec/support/shared/functional/win32_service.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/shared/functional/win32_service.rb b/spec/support/shared/functional/win32_service.rb
index 0f9072bdef..f9cc43d3f9 100644
--- a/spec/support/shared/functional/win32_service.rb
+++ b/spec/support/shared/functional/win32_service.rb
@@ -23,9 +23,7 @@ shared_context "using Win32::Service" do
# We can only uninstall when the service is stopped.
if test_service_state != "stopped"
::Win32::Service.send("stop", "spec-service")
- while test_service_state != "stopped"
- sleep 1
- end
+ sleep 1 while test_service_state != "stopped"
end
::Win32::Service.delete("spec-service")