fix 'timeit' in headless mode

This commit is contained in:
MihailRis
2024-12-11 14:08:24 +03:00
parent c67f158e62
commit b05c2fc911
4 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
test.new_world("demo", "2019", "core:default")
assert(world.is_open())
assert(world.get_generator() == "core:default")
coroutine.yield()
test.sleep(1)
assert(world.get_total_time() > 0.0)
print(world.get_total_time())
test.close_world(true)