Skip to content

Commit

Permalink
TestStaticBody: encourage garbage collection during the test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 16, 2024
1 parent 8048bf9 commit 499f03a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,7 @@ public void testStaticBody() {
CollisionShape segment = new SphericalSegment(1f);
PhysicsRigidBody segmentBody = new PhysicsRigidBody(segment, 0f);
space.addCollisionObject(segmentBody);

System.gc();
}
}

0 comments on commit 499f03a

Please sign in to comment.