Mercurial > prosody-hg
comparison spec/util_throttle_spec.lua @ 10411:db2a06b9ff98
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 16 Nov 2019 16:52:31 +0100 |
| parents | 02a41315d275 |
| children | f4415f76727b |
comparison
equal
deleted
inserted
replaced
| 10410:659b577f280c | 10411:db2a06b9ff98 |
|---|---|
| 86 a.balance = 0; | 86 a.balance = 0; |
| 87 for i=1,10 do | 87 for i=1,10 do |
| 88 later(0.1); | 88 later(0.1); |
| 89 a:update(); | 89 a:update(); |
| 90 end | 90 end |
| 91 assert(math.abs(a.balance - 1) < 0.0001); -- incremental updates cause rouding errors | 91 assert(math.abs(a.balance - 1) < 0.0001); -- incremental updates cause rounding errors |
| 92 end); | 92 end); |
| 93 end); | 93 end); |
| 94 | 94 |
| 95 -- describe("po") | 95 -- describe("po") |
| 96 | 96 |
