Skip to content

Commit

Permalink
Merge pull request #90613 from akien-mga/tests-navigation-race-condition
Browse files Browse the repository at this point in the history
Tests: Remove NavigationRegion3D race condition that fails on CI
  • Loading branch information
akien-mga committed Apr 13, 2024
2 parents 0856015 + 66cf38e commit 2886511
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/scene/test_navigation_region_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ TEST_SUITE("[Navigation]") {
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(navigation_region);
memdelete(node_3d);
Expand Down

0 comments on commit 2886511

Please sign in to comment.