aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2025-05-06 23:26:30 +0200
committerGitHub <noreply@github.com>2025-05-06 23:26:30 +0200
commit1bb926ca068a32857b3d0441096497dab3d9e34a (patch)
treea78ee9a51c9dd492fc2990177f224eea4d314be8 /tests
parentci: add nvim v0.11 to test matrix (#1923) (diff)
downloadmason-1bb926ca068a32857b3d0441096497dab3d9e34a.tar
mason-1bb926ca068a32857b3d0441096497dab3d9e34a.tar.gz
mason-1bb926ca068a32857b3d0441096497dab3d9e34a.tar.bz2
mason-1bb926ca068a32857b3d0441096497dab3d9e34a.tar.lz
mason-1bb926ca068a32857b3d0441096497dab3d9e34a.tar.xz
mason-1bb926ca068a32857b3d0441096497dab3d9e34a.tar.zst
mason-1bb926ca068a32857b3d0441096497dab3d9e34a.zip
tests: fix flaky test (#1924)
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-registry/registry_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mason-registry/registry_spec.lua b/tests/mason-registry/registry_spec.lua
index 89b9436f..daa8fc9f 100644
--- a/tests/mason-registry/registry_spec.lua
+++ b/tests/mason-registry/registry_spec.lua
@@ -25,6 +25,10 @@ describe("mason-registry", function()
it("should check if package is installed", function()
local dummy = registry.get_package "dummy"
+ -- TODO unflake this in a better way
+ if dummy:is_installed() then
+ test_helpers.sync_uninstall(dummy)
+ end
assert.is_false(registry.is_installed "dummy")
test_helpers.sync_install(dummy)
assert.is_true(registry.is_installed "dummy")