Skip to content

Commit 0d4f51f

Browse files
Display an error message at start of test:sequential if json2capnp is not running
This will display that error message: ================================================================================ ERROR: json2capnp service is not running! ================================================================================ The sequential tests require the json2capnp rust server to be started. To start the service, run the following commands: cd services/json2capnp cargo run 2000 ../../projects/test/test_cache/test Or in a single command from the project root: (cd services/json2capnp && cargo run 2000 ../../projects/test/test_cache/test) Expected service location: localhost:2000 ================================================================================
1 parent 5660ee9 commit 0d4f51f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/transition-backend/jest.sequential.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ const baseConfig = require('../../tests/jest.config.base');
1616
// Run the db and integration tests
1717
module.exports = {
1818
...baseConfig,
19-
'testRegex': ['(/__tests__/.*(db\\.test)\\.(jsx?|tsx?))$','(/__tests__/.*(integration\\.test)\\.(jsx?|tsx?))$']
19+
'testRegex': ['(/__tests__/.*(db\\.test)\\.(jsx?|tsx?))$','(/__tests__/.*(integration\\.test)\\.(jsx?|tsx?))$'],
20+
globalSetup: '<rootDir>/jest.sequential.setup.js'
2021
};

packages/transition-backend/src/api/services.socketRoutes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export default function (socket: EventEmitter, userId?: number) {
140140
options: TransitMapCalculationOptions,
141141
callback: (status: Status.Status<TransitAccessibilityMapWithPolygonResult>) => void
142142
) => {
143+
console.time('accessibiliyMap.calculateWithPolygons');
143144
try {
144145
const resultsWithPolygon = await TransitAccessibilityMapCalculator.calculateWithPolygons(
145146
routingAttributes,
@@ -154,6 +155,7 @@ export default function (socket: EventEmitter, userId?: number) {
154155
)
155156
);
156157
}
158+
console.timeEnd('accessibiliyMap.calculateWithPolygons');
157159
}
158160
);
159161

0 commit comments

Comments
 (0)