]> git.g-eek.se Git - interimap.git/commit
long-lived tests: sleep between 1ms and 999ms.
authorGuilhem Moulin <guilhem@fripost.org>
Mon, 3 Jun 2019 01:50:12 +0000 (03:50 +0200)
committerGuilhem Moulin <guilhem@fripost.org>
Mon, 3 Jun 2019 12:22:16 +0000 (14:22 +0200)
commitdb844d8979c17469012a079a051f60044532b6ed
treee70e21cb65b69404f05e9c23fab1fc11ec0983ef
parent12e1af3f589a70d2e09b8dd873dbed28142154af
long-lived tests: sleep between 1ms and 999ms.

`shuf -n1 -i1-99` produces a number between 1 and 99, hence `sleep
"0.$(shuf -n1 -i1-99)"` pauses for some time between 100ms and 990ms.
Moreover it's not uniformly distributed as multiples of 100ms (0.100,
0.200, …, 0.900) have twice the probability of other numbers.
tests/07-sync-live-multi/run
tests/07-sync-live/run