Skip to content

Commit 1bb926c

Browse files
authored
tests: fix flaky test (#1924)
1 parent 4eb3e09 commit 1bb926c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/mason-registry/registry_spec.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ describe("mason-registry", function()
2525

2626
it("should check if package is installed", function()
2727
local dummy = registry.get_package "dummy"
28+
-- TODO unflake this in a better way
29+
if dummy:is_installed() then
30+
test_helpers.sync_uninstall(dummy)
31+
end
2832
assert.is_false(registry.is_installed "dummy")
2933
test_helpers.sync_install(dummy)
3034
assert.is_true(registry.is_installed "dummy")

0 commit comments

Comments
 (0)