summaryrefslogtreecommitdiffstats
path: root/tests/scene/test_graph_node.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scene/test_graph_node.h')
-rw-r--r--tests/scene/test_graph_node.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/scene/test_graph_node.h b/tests/scene/test_graph_node.h
index bf6cc9be09..7973ac1444 100644
--- a/tests/scene/test_graph_node.h
+++ b/tests/scene/test_graph_node.h
@@ -48,8 +48,10 @@ TEST_CASE("[GraphNode][SceneTree]") {
test_node->add_child(test_child);
// Test.
- CHECK_NOTHROW_MESSAGE(test_node->remove_child(test_child));
+ test_node->remove_child(test_child);
+ CHECK(test_node->get_child_count(false) == 0);
+ memdelete(test_child);
memdelete(test_node);
}
}