diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index c8f667c..ec87a7b 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -52,7 +52,7 @@ on(host, '/usr/sbin/svcadm restart /system/ca-certificates') timeout = 60 counter = 0 - while on(host, 'svcs -x ca-certificates').output !~ %r{State: online} + until on(host, 'svcs -x ca-certificates').output.include?('State: online') raise 'ca-certificates services failed start up' if counter > timeout sleep 5 counter += 5