diff options
| author | William Boman <william@redwill.se> | 2022-07-07 03:32:01 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-07-07 03:32:01 +0200 |
| commit | 357b5423ee6bd9c0b5010b0660cd5cdf1b134740 (patch) | |
| tree | e433cc6179c50265632034765ef740c8e1175256 | |
| parent | fix(ui): display correct keybinding for language filter (diff) | |
| download | mason-357b5423ee6bd9c0b5010b0660cd5cdf1b134740.tar mason-357b5423ee6bd9c0b5010b0660cd5cdf1b134740.tar.gz mason-357b5423ee6bd9c0b5010b0660cd5cdf1b134740.tar.bz2 mason-357b5423ee6bd9c0b5010b0660cd5cdf1b134740.tar.lz mason-357b5423ee6bd9c0b5010b0660cd5cdf1b134740.tar.xz mason-357b5423ee6bd9c0b5010b0660cd5cdf1b134740.tar.zst mason-357b5423ee6bd9c0b5010b0660cd5cdf1b134740.zip | |
test(async): fix flaky test
No idea what it was asserting before tbh.
| -rw-r--r-- | tests/core/async_spec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/core/async_spec.lua b/tests/core/async_spec.lua index 330a014e..8bb74bfa 100644 --- a/tests/core/async_spec.lua +++ b/tests/core/async_spec.lua @@ -189,10 +189,9 @@ describe("async", function() sleep(150, 4), sleep(150, 5), } - local grace = 50 + local grace = 20 local delta = timestamp() - start - assert.is_true(delta <= (100 + grace)) - assert.is_true(delta >= (100 - grace)) + assert.is_true(delta <= (50 + grace)) assert.equals("first", first) end) ) |
