Skip to content

Commit

Permalink
front: change time tolerance from 1s to 2s
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Rolland <[email protected]>
  • Loading branch information
axrolld authored and clarani committed Dec 24, 2024
1 parent 07e13ab commit 29c445e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion front/src/modules/timesStops/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const MarginUnit = {
second: 's',
} as const;

export const ARRIVAL_TIME_ACCEPTABLE_ERROR_MS = 1000;
export const ARRIVAL_TIME_ACCEPTABLE_ERROR_MS = 2000;
6 changes: 3 additions & 3 deletions front/tests/008-train-schedule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ test.describe('Verify train schedule elements and filters', () => {
const TOTAL_TRAINS = 21;
const VALID_TRAINS = 17;
const INVALID_TRAINS = 4;
const HONORED_TRAINS = 13;
const NOT_HONORED_TRAINS = 4;
const VALID_AND_HONORED_TRAINS = 13;
const HONORED_TRAINS = 14;
const NOT_HONORED_TRAINS = 3;
const VALID_AND_HONORED_TRAINS = 14;
const INVALID_AND_NOT_HONORED_TRAINS = 0;
test.beforeAll('Fetch project, study and scenario with train schedule', async () => {
project = await getProject(trainScheduleProjectName);
Expand Down

0 comments on commit 29c445e

Please sign in to comment.