workaround for ntp check
This commit is contained in:
parent
7bcf201e4f
commit
7abff8b0c7
@ -2,7 +2,8 @@ require 'minitest/spec'
|
||||
|
||||
describe_recipe 'ntp::default' do
|
||||
it "starts the ntp daemon" do
|
||||
assert_sh("service ntp status")
|
||||
# ugly workaround because of race condition
|
||||
assert_sh("sleep 3 && kill -0 $(cat /var/run/ntpd.pid)")
|
||||
end
|
||||
it "should sync the time" do
|
||||
assert_sh("ntpq -p")
|
||||
|
Loading…
Reference in New Issue
Block a user