Skip to content

Commit

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

https://bugzilla.suse.com/show_bug.cgi?id=1179022
  • Loading branch information
dzedro committed Nov 20, 2020
1 parent 3d6ab6c commit b6b60ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/console/ntp_client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ sub run {
if (is_sle) {
systemctl 'enable chronyd';
systemctl 'start chronyd';
record_soft_failure 'bsc#1179022';
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 b6b60ef

Please sign in to comment.