Will now await properly
This commit is contained in:
parent
6e55487fd5
commit
ef5c6f4535
1 changed files with 3 additions and 3 deletions
|
@ -117,13 +117,13 @@ func run_suite(suite: String) -> void:
|
||||||
suite_node.test_message = ""
|
suite_node.test_message = ""
|
||||||
# Execute before_each()
|
# Execute before_each()
|
||||||
suite_node.lfunc = "before_each"
|
suite_node.lfunc = "before_each"
|
||||||
suite_node.before_each()
|
await suite_node.before_each()
|
||||||
# Execute test function
|
# Execute test function
|
||||||
suite_node.lfunc = test_method["name"]
|
suite_node.lfunc = test_method["name"]
|
||||||
suite_node.call(test_method["name"])
|
await suite_node.call(test_method["name"])
|
||||||
# Execute after_each()
|
# Execute after_each()
|
||||||
suite_node.lfunc = "after_each"
|
suite_node.lfunc = "after_each"
|
||||||
suite_node.after_each()
|
await suite_node.after_each()
|
||||||
|
|
||||||
# Merge result into result dictionary
|
# 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]" } })
|
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]" } })
|
||||||
|
|
Loading…
Reference in a new issue