Merge pull request #90613 from akien-mga/tests-navigation-race-condition

Tests: Remove NavigationRegion3D race condition that fails on CI
This commit is contained in:
Rémi Verschelde 2024-04-13 11:30:57 +02:00
commit 2886511c18
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -71,15 +71,6 @@ TEST_SUITE("[Navigation]") {
CHECK_NE(navigation_mesh->get_vertices().size(), 0); CHECK_NE(navigation_mesh->get_vertices().size(), 0);
} }
// Race condition is present in the below subcase, but baking should take many
// orders of magnitude longer than basic checks on the main thread, so it's fine.
SUBCASE("Asynchronous bake should not be immediate") {
navigation_region->bake_navigation_mesh(true);
CHECK(navigation_region->is_baking());
CHECK_EQ(navigation_mesh->get_polygon_count(), 0);
CHECK_EQ(navigation_mesh->get_vertices().size(), 0);
}
memdelete(mesh_instance); memdelete(mesh_instance);
memdelete(navigation_region); memdelete(navigation_region);
memdelete(node_3d); memdelete(node_3d);