]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: set longer StartLimitIntervalSec= and fewer StartLimitBurst=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Apr 2019 12:26:26 +0000 (21:26 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 1 Apr 2019 17:13:36 +0000 (19:13 +0200)
Some test environment may be in heavy load. In that case, rate limit
never hit, and the test fails...

test/TEST-11-ISSUE-3166/test.sh

index 6cde7fd7eaa89f6ac7c3fe29d6ad3249bef264e5..38c725fa7045b13700cf09de0775a68dae62f2f9 100755 (executable)
@@ -41,6 +41,8 @@ EOF
         cat >$initdir/etc/systemd/system/fail-on-restart.service <<EOF
 [Unit]
 Description=Fail on restart
+StartLimitIntervalSec=1m
+StartLimitBurst=3
 
 [Service]
 Type=simple