test: correct TEST-41 StartLimitBurst test
authorDan Streetman <ddstreet@canonical.com>
Thu, 17 Oct 2019 15:06:18 +0000 (11:06 -0400)
committerDan Streetman <ddstreet@canonical.com>
Fri, 18 Oct 2019 19:51:43 +0000 (15:51 -0400)
commitdfec314d41159117c28dffc2b980d3bdd67c3dcb
tree56eaaf78875195a6a2409dc482dae82d9c54f99c
parent02baf239d87295362740d961765091b778795573
test: correct TEST-41 StartLimitBurst test

TEST-41 verifies that the StartLimitBurst property will correctly
limit the number of unit restarts, but the test currently doesn't
adjust the StartLimitIntervalSec which defaults to 10 seconds.

On Ubuntu CI, running under un-accelerated qemu, it can take more than
10 seconds to perform all 3 restarts, which avoids the burst limit,
and fails the test.

Instead, specify a long StartLimitIntervalSec in the test, so we can
be sure to correctly test StartLimitBurst even on slow testbeds.

Fixes #13794.
test/TEST-41-ONESHOT-RESTART/blacklist-ubuntu-ci [deleted file]
test/TEST-41-ONESHOT-RESTART/testsuite.sh