From 5d3634bfb24314cc2a54ef2f72698ec71365f567 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 31 Mar 2024 03:14:03 +0200 Subject: [PATCH] Remove cleanup test A better version of the 'z_cleanup' test has been integrated into Bessere Tests in the latest commit (as of writing this commit message). Therefore this test is no longer required as Bessere Tests will warn us on shutdown for any leftover children or orphan nodes from now on. --- dist/submodules/besseretests | 2 +- tests/unit/z_cleanup.gd | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 tests/unit/z_cleanup.gd diff --git a/dist/submodules/besseretests b/dist/submodules/besseretests index 642c3a6..82cf251 160000 --- a/dist/submodules/besseretests +++ b/dist/submodules/besseretests @@ -1 +1 @@ -Subproject commit 642c3a62a9c2abeb1d3b61d4d4639db75bc02d4a +Subproject commit 82cf251ecee89f3f2a575b1b322c1df48ea42aaf diff --git a/tests/unit/z_cleanup.gd b/tests/unit/z_cleanup.gd deleted file mode 100644 index b9dc2da..0000000 --- a/tests/unit/z_cleanup.gd +++ /dev/null @@ -1,8 +0,0 @@ -extends 'res://tests/unitbase.gd' - -func test_root() -> void: - var children_active: Array[String] = [] - for child in get_tree().root.get_children(): if child.name != "RuntimeScene" and child.name != name: children_active.append(child.name) - - if children_active.size() == 0: rok() - else: rerror("There are still children active in /root/")