aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-07-07 03:32:01 +0200
committerWilliam Boman <william@redwill.se>2022-07-07 03:32:01 +0200
commit357b5423ee6bd9c0b5010b0660cd5cdf1b134740 (patch)
treee433cc6179c50265632034765ef740c8e1175256
parentfix(ui): display correct keybinding for language filter (diff)
downloadmason-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.lua5
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)
)