From 20e99ffe09c774db39278bc961595ca9a116aaee Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Wed, 19 Aug 2015 14:35:31 +0300 Subject: [PATCH] [routing] Itegration tests bad turns counter fix. --- integration_tests/routing_test_tools.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration_tests/routing_test_tools.cpp b/integration_tests/routing_test_tools.cpp index 27f439af23..d7e37d322f 100644 --- a/integration_tests/routing_test_tools.cpp +++ b/integration_tests/routing_test_tools.cpp @@ -210,7 +210,8 @@ namespace integration void TestTurnCount(routing::Route const & route, uint32_t expectedTurnCount) { - TEST_EQUAL(route.GetTurns().size(), expectedTurnCount, ()); + // We use -1 for ignoring the "ReachedYourDestination" turn record. + TEST_EQUAL(route.GetTurns().size() - 1, expectedTurnCount, ()); } void TestRouteLength(Route const & route, double expectedRouteMeters,