summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-08-09 12:31:44 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-08-16 18:41:25 -0700
commit7037433634d0b02574d03a8465541ea2f49d3f39 (patch)
treebb708bd38fbb6f86d0f0f01eb0b9a2da03423fd7 /spec/support
parent498d60207ce6664f0ca807b3f7a4690b3097014c (diff)
downloadchef-7037433634d0b02574d03a8465541ea2f49d3f39.tar.gz
autofixing Style/WhileUntilModifier cop
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared/functional/win32_service.rb4
-rw-r--r--spec/support/shared/integration/app_server_support.rb4
2 files changed, 2 insertions, 6 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")
diff --git a/spec/support/shared/integration/app_server_support.rb b/spec/support/shared/integration/app_server_support.rb
index 9bc48dbd93..4dfa3fa155 100644
--- a/spec/support/shared/integration/app_server_support.rb
+++ b/spec/support/shared/integration/app_server_support.rb
@@ -33,9 +33,7 @@ module AppServerSupport
end
end
Timeout.timeout(30) do
- until server && server.status == :Running
- sleep(0.01)
- end
+ sleep(0.01) until server && server.status == :Running
end
[server, thread]
end