Skip to content

Commit

Permalink
ntp_client: Wait for 4 sources which responded to request
Browse files Browse the repository at this point in the history
To avoid '503 No such source error' in SLE when running chronyc sources while
chronyc is resolving sources and wait for response from 4 sources by default

https://bugzilla.suse.com/show_bug.cgi?id=1179022
  • Loading branch information
dzedro committed Nov 20, 2020
1 parent 3d6ab6c commit f489347
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/console/ntp_client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ sub run {
if (is_sle) {
systemctl 'enable chronyd';
systemctl 'start chronyd';
assert_script_run 'until chronyc sources|grep "Number of sources = 4"; do sleep 1; echo "waiting for 4 ntp sources response"; done';
}

# ensure that ntpd is neither installed nor enabled nor active
Expand Down

0 comments on commit f489347

Please sign in to comment.