From 96a0fccd2d6d4b9531412e38f0befcd44f05b73c Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Tue, 14 Jan 2025 15:11:27 +0100 Subject: [PATCH] Initialize before adding any data --- .../transit/speed_test/TransferCacheTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/src/test/java/org/opentripplanner/transit/speed_test/TransferCacheTest.java b/application/src/test/java/org/opentripplanner/transit/speed_test/TransferCacheTest.java index 84b45c0e73a..1c41cf67044 100644 --- a/application/src/test/java/org/opentripplanner/transit/speed_test/TransferCacheTest.java +++ b/application/src/test/java/org/opentripplanner/transit/speed_test/TransferCacheTest.java @@ -28,17 +28,17 @@ public static void main(String[] args) { var timetableRepository = model.timetableRepository(); var buildConfig = model.buildConfig(); + var timer = new SpeedTestTimer(); + timer.setUp(false); + // Creating transitLayerForRaptor should be integrated into the TimetableRepository, but for now // we do it manually here creatTransitLayerForRaptor(timetableRepository, config.transitRoutingParams); assertTestDateHasData(timetableRepository, config, buildConfig); - var timer = new SpeedTestTimer(); - measureTransferCacheComputation(timer, timetableRepository); - timer.setUp(false); timer.finishUp(); } catch (OtpAppException ae) { System.err.println(ae.getMessage());