Will now await properly

This commit is contained in:
JeremyStar™ 2024-03-28 14:05:39 +01:00
parent 6e55487fd5
commit ef5c6f4535

View file

@ -117,13 +117,13 @@ func run_suite(suite: String) -> void:
suite_node.test_message = ""
# Execute before_each()
suite_node.lfunc = "before_each"
suite_node.before_each()
await suite_node.before_each()
# Execute test function
suite_node.lfunc = test_method["name"]
suite_node.call(test_method["name"])
await suite_node.call(test_method["name"])
# Execute after_each()
suite_node.lfunc = "after_each"
suite_node.after_each()
await suite_node.after_each()
# Merge result into result dictionary
results.merge({ suite + ":" + test_method["name"]: { "status": suite_node.test_status, "message": lsanitize(suite_node.test_message) if suite_node.test_message != "" else "[i]No message has been set.[/i]" } })