summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorLamont Granquist <454857+lamont-granquist@users.noreply.github.com>2022-01-04 12:44:48 -0800
committerGitHub <noreply@github.com>2022-01-04 12:44:48 -0800
commitf9fb231d9080192b31728d31c56de9d009941637 (patch)
treeed82f4b520ab81ad89bd5023f8d8c8d35a4f3205 /kitchen-tests
parent8c5dbeb7609284f79d705e6ff0ac703bce0752ba (diff)
parentf84a238a1d8d0060d5064eee0b74ed942088d4fd (diff)
downloadchef-f9fb231d9080192b31728d31c56de9d009941637.tar.gz
Merge pull request #12411 from chef/Performance_RegexpMatch
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/_habitat_service.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/_habitat_service.rb b/kitchen-tests/cookbooks/end_to_end/recipes/_habitat_service.rb
index d928e01466..294cb982b0 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/_habitat_service.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/_habitat_service.rb
@@ -39,7 +39,7 @@ ruby_block "wait-for-nginx-load" do
end
ruby_block "wait-for-nginx-up" do
block do
- raise "nginx not loaded" unless `hab svc status core/nginx`.match(/standalone\s+up\s+up/)
+ raise "nginx not loaded" unless `hab svc status core/nginx`.match?(/standalone\s+up\s+up/)
end
retries 8
retry_delay 10
@@ -78,7 +78,7 @@ end
ruby_block "wait-for-redis-started" do
block do
sleep 10
- raise "redis not started" unless `hab svc status core/redis`.match(/standalone\s+up\s+up/)
+ raise "redis not started" unless `hab svc status core/redis`.match?(/standalone\s+up\s+up/)
end
retries 8
retry_delay 10
@@ -96,7 +96,7 @@ end
ruby_block "wait-for-redis-stopped" do
block do
sleep 10
- raise "redis not stopped" unless `hab svc status core/redis`.match(/standalone\s+down\s+down/)
+ raise "redis not stopped" unless `hab svc status core/redis`.match?(/standalone\s+down\s+down/)
end
retries 8
retry_delay 10
@@ -251,7 +251,7 @@ ruby_block "wait-for-consul-load" do
end
ruby_block "wait-for-consul-startup" do
block do
- raise "consul not started" unless `hab svc status core/consul`.match(/standalone\s+up\s+up/)
+ raise "consul not started" unless `hab svc status core/consul`.match?(/standalone\s+up\s+up/)
end
retries 8
retry_delay 10