Mercurial > prosody-hg
comparison spec/util_throttle_spec.lua @ 11200:bf8f2da84007
Merge 0.11->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Nov 2020 22:31:25 +0100 |
| parents | 02a41315d275 |
| children | f4415f76727b |
comparison
equal
deleted
inserted
replaced
| 11199:6c7c50a4de32 | 11200:bf8f2da84007 |
|---|---|
| 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 |
