Skip to content

Commit

Permalink
added info to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Corwin-Kh committed May 14, 2024
1 parent 67686ed commit 33b7fc6
Showing 1 changed file with 3 additions and 2 deletions.
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 33b7fc6

Please sign in to comment.