workaround for ntp check

This commit is contained in:
Jörg Thalheim 2014-01-27 16:07:01 +01:00
parent 7bcf201e4f
commit 7abff8b0c7

View File

@ -2,7 +2,8 @@ require 'minitest/spec'
describe_recipe 'ntp::default' do describe_recipe 'ntp::default' do
it "starts the ntp daemon" 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 end
it "should sync the time" do it "should sync the time" do
assert_sh("ntpq -p") assert_sh("ntpq -p")