Skip to content

Commit

Permalink
Merge pull request #19865 from osmandapp/fix_render_test
Browse files Browse the repository at this point in the history
added info to error message
  • Loading branch information
Chumva committed May 14, 2024
2 parents 67686ed + 33b7fc6 commit f2476a5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ public ObserveDistToFinishIdlingResource(@NonNull OsmandApplication app) {
Runnable checkLeftDistanceTask = () -> {
MapRendererView rendererView = mapView.getMapRenderer();
if (rendererView != null) {
if(rendererView.getFrameId() - startFrameId < 50) {
throw new AssertionError("Map rendering to slow");
int renderedFrames = rendererView.getFrameId() - startFrameId;
if(renderedFrames < 50) {
throw new AssertionError("Map rendering to slow. rendered " + renderedFrames + " frames");
}
} else {
throw new AssertionError("Failed to get map renderer");
Expand Down

0 comments on commit f2476a5

Please sign in to comment.