diff --git a/test/tests.luau b/test/tests.luau index b0cee91..f9e82e8 100755 --- a/test/tests.luau +++ b/test/tests.luau @@ -3364,7 +3364,12 @@ TEST("world:targets()", function() CHECK(seen[t] == true) end - for t in world:targets(e, ROOT) do + for j = 1, #all_targets do + local t: Entity + while t == nil do + t = all_targets[j] + end + if math.random() < 0.5 then world:remove(e, jecs.pair(ROOT, t)) alive[t] = nil