Fix simulated speed label in NavigationViewController#49
Fix simulated speed label in NavigationViewController#49boldtrn merged 1 commit intomaplibre:mainfrom
Conversation
9a4ae59 to
9f6c194
Compare
I just re-ran them and they passed. It seems to be a flaky benchmark. The bench in question seems to be a small total cost (3 ms), so a small absolute deviation is a large relative deviation. Maybe we should update the baselines if this occurs again?
Thanks for the reminder. Updated! |
|
I think I misread the test failure. The benchmark was marked as slower, but it didn't cause the tests to fail. The failure is a cryptic: So tests passed, but non-zero exit code from the test runner. The runs that fail seem to run much slower (e.g. more than 20+ minutes vs. the passing tests 5-10min) Re-starting the action succeeded. I'm not sure what to make of it. |
hactar
left a comment
There was a problem hiding this comment.
I approve this change - but I'm not going to merge it - someone with more knowledge about the tests should take a look and confirm that we're ok
Just to clarify, while it certainly doesn't hurt, IMHO we don't need to document tiny changes like this. But especially if we remove code, change APIs, or change anything else, that might break / interrupt other implementers, we should really add this to the changelog. Thanks for working on this @michaelkirk, I think we can merge this :) Thanks for the review @hactar 👍 |
Description
For testing purposes, there is a
SimulatedLocationManager. You give it a route and it updates your "current location" to be along that route.To speed up the testing cycle, you can set a speed multiplier on the
SimulatedLocationManagerso that the route is travelled much faster than what it would be in realtime.When using the
SimulatedLocationManagerthe navigation view controller shows what the speed multiplier is. However, it used to always say "Simulating Navigation at 1x" regardless of what you'd set the speed multiplier to.before

Now it properly reflects the specified speed

after