aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-04-01 22:35:34 +0200
committerGitHub <noreply@github.com>2023-04-01 20:35:34 +0000
commit1840ecc8442ac17527430a1941c82b9606341740 (patch)
tree31534a4c6f8af0006884d0087c21c5a8162576c1 /tests
parentfeat(ui): display warning and error message if registry is not installed (#1164) (diff)
downloadmason-1840ecc8442ac17527430a1941c82b9606341740.tar
mason-1840ecc8442ac17527430a1941c82b9606341740.tar.gz
mason-1840ecc8442ac17527430a1941c82b9606341740.tar.bz2
mason-1840ecc8442ac17527430a1941c82b9606341740.tar.lz
mason-1840ecc8442ac17527430a1941c82b9606341740.tar.xz
mason-1840ecc8442ac17527430a1941c82b9606341740.tar.zst
mason-1840ecc8442ac17527430a1941c82b9606341740.zip
fix(async): early return if no suspend functions (#1165)
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-core/async/async_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/mason-core/async/async_spec.lua b/tests/mason-core/async/async_spec.lua
index 828a9409..fa111eed 100644
--- a/tests/mason-core/async/async_spec.lua
+++ b/tests/mason-core/async/async_spec.lua
@@ -195,4 +195,9 @@ describe("async", function()
assert.equals("first", first)
end)
)
+
+ it("should yield back immediately when not providing any functions", function()
+ assert.is_nil(a.wait_first {})
+ assert.is_nil(a.wait_all {})
+ end)
end)