Skip to content

Commit 456df26

Browse files
committed
fix
1 parent 28ccdea commit 456df26

6 files changed

Lines changed: 21 additions & 18 deletions

File tree

lib/database/seeders/20240112102011-data-passes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ module.exports = {
8181
/** LHC23f */
8282
{
8383
id: 9,
84-
name: 'LHC23r_cpass0',
84+
name: 'LHC23f_cpass0',
8585
lhc_period_id: 3,
8686
created_at: '2024-02-11 10:00:00',
8787
updated_at: '2024-02-11 10:00:00',

test/api/detectors.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module.exports = () => {
3030
{ id: 1, name: 'CPV' },
3131
{ id: 18, name: 'CTP' },
3232
{ id: 2, name: 'EMC' },
33+
{ id: 23, name: 'EVS' },
3334
{ id: 3, name: 'FDD' },
3435
{ id: 19, name: 'FIT' },
3536
{ id: 7, name: 'FT0' },
@@ -40,12 +41,14 @@ module.exports = () => {
4041
{ id: 8, name: 'MCH' },
4142
{ id: 9, name: 'MFT' },
4243
{ id: 10, name: 'MID' },
44+
{ id: 24, name: 'MUD' },
4345
{ id: 11, name: 'PHS' },
4446
{ id: 20, name: 'QC-SPECIFIC' },
4547
{ id: 12, name: 'TOF' },
4648
{ id: 13, name: 'TPC' },
4749
{ id: 14, name: 'TRD' },
4850
{ id: 15, name: 'TST' },
51+
{ id: 22, name: 'VTX' },
4952
{ id: 16, name: 'ZDC' },
5053
]);
5154
});

test/api/lhcPeriodsStatistics.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const lhcPeriod_LHC23f = {
5454
id: 3,
5555
name: 'LHC23f',
5656
},
57-
beamTypes: ['O'],
57+
beamTypes: ['OO'],
5858
distinctEnergies: [],
5959
dataPassesCount: 1,
6060
runsCount: 1,

test/api/runs.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ module.exports = () => {
209209

210210
const { data } = response.body;
211211
expect(data).to.be.an('array');
212-
expect(data).to.have.lengthOf(8);
212+
expect(data).to.have.lengthOf(9);
213213
});
214214

215215
it('should successfully filter on tags', async () => {
@@ -267,7 +267,7 @@ module.exports = () => {
267267
expect(response.status).to.equal(200);
268268

269269
const { data } = response.body;
270-
expect(data).to.lengthOf(10);
270+
expect(data).to.lengthOf(11);
271271
expect(data.every(({ definition }) => definition === RunDefinition.PHYSICS)).to.be.true;
272272
});
273273

@@ -357,7 +357,7 @@ module.exports = () => {
357357
const { data } = response.body;
358358
expect(data).to.be.an('array');
359359

360-
expect(data).to.have.lengthOf(14);
360+
expect(data).to.have.lengthOf(15);
361361
});
362362

363363
it('should successfully filter on updatedAt', async () => {
@@ -372,7 +372,7 @@ module.exports = () => {
372372
const { data } = response.body;
373373

374374
expect(data).to.be.an('array');
375-
expect(data).to.have.lengthOf(10);
375+
expect(data).to.have.lengthOf(11);
376376
});
377377

378378
const inelasticInteractionRateFilteringTestsParameters = {
@@ -496,7 +496,7 @@ module.exports = () => {
496496
expect(response.status).to.equal(200);
497497

498498
const { data } = response.body;
499-
expect(data.length).to.equal(7);
499+
expect(data.length).to.equal(8);
500500
});
501501

502502
it('should return 400 if "runQuality" is invalid', async () => {
@@ -527,7 +527,7 @@ module.exports = () => {
527527

528528
const { data } = response.body;
529529
expect(data).to.be.an('array');
530-
expect(data).to.have.lengthOf(48);
530+
expect(data).to.have.lengthOf(49);
531531
});
532532

533533
it('should successfully filter on lhcPeriod', async () => {
@@ -933,7 +933,7 @@ module.exports = () => {
933933
expect(res.body.data.odcTopologyFullName).to.equal('synchronous-workflow');
934934
expect(res.body.data).to.be.an('object');
935935
expect(res.body.data.runType.id).to.be.a('number');
936-
expect(res.body.data.id).to.equal(109);
936+
expect(res.body.data.id).to.equal(110);
937937

938938
done();
939939
});

test/lib/server/services/detector/DetectorService.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = () => {
2424
{ id: 1, name: 'CPV' },
2525
{ id: 18, name: 'CTP' },
2626
{ id: 2, name: 'EMC' },
27+
{ id: 23, name: 'EVS' },
2728
{ id: 3, name: 'FDD' },
2829
{ id: 19, name: 'FIT' },
2930
{ id: 7, name: 'FT0' },
@@ -34,16 +35,15 @@ module.exports = () => {
3435
{ id: 8, name: 'MCH' },
3536
{ id: 9, name: 'MFT' },
3637
{ id: 10, name: 'MID' },
38+
{ id: 24, name: 'MUD' },
3739
{ id: 11, name: 'PHS' },
3840
{ id: 20, name: 'QC-SPECIFIC' },
3941
{ id: 12, name: 'TOF' },
4042
{ id: 13, name: 'TPC' },
4143
{ id: 14, name: 'TRD' },
4244
{ id: 15, name: 'TST' },
43-
{ id: 16, name: 'ZDC' },
4445
{ id: 22, name: 'VTX' },
45-
{ id: 23, name: 'EVS' },
46-
{ id: 24, name: 'MUD' },
46+
{ id: 16, name: 'ZDC' },
4747
]);
4848
});
4949
};

test/lib/usecases/run/GetAllRunsUseCase.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ module.exports = () => {
184184
});
185185

186186
it('should successfully filter on run definition', async () => {
187-
const PHYSICS_COUNT = 6;
187+
const PHYSICS_COUNT = 7;
188188
const COSMICS_COUNT = 2;
189189
const TECHNICAL_COUNT = 1;
190190
const SYNTHETIC_COUNT = 2;
@@ -388,7 +388,7 @@ module.exports = () => {
388388
const { runs } = await new GetAllRunsUseCase()
389389
.execute(getAllRunsDto);
390390
expect(runs).to.be.an('array');
391-
expect(runs).to.have.lengthOf(1);
391+
expect(runs).to.have.lengthOf(2);
392392
}
393393
});
394394

@@ -457,7 +457,7 @@ module.exports = () => {
457457
({ runs } = await getAllRunsUseCase.execute(getAllRunsDto));
458458
expect(runs).to.be.an('array');
459459

460-
expect(runs).to.have.lengthOf(7);
460+
expect(runs).to.have.lengthOf(8);
461461
expect(runs.every((run) => run.runDuration >= pivot)).to.be.true;
462462

463463
runDuration.operator = '>';
@@ -537,7 +537,7 @@ module.exports = () => {
537537
({ runs } = await new GetAllRunsUseCase().execute(getAllRunsDto));
538538
expect(runs).to.be.an('array');
539539
// 3 runs have 15 detectors
540-
expect(runs).to.have.lengthOf(3);
540+
expect(runs).to.have.lengthOf(4);
541541
});
542542

543543
it('should successfully filter on flps number', async () => {
@@ -609,7 +609,7 @@ module.exports = () => {
609609
ctfFileCount.operator = '>';
610610
({ runs } = await new GetAllRunsUseCase().execute(getAllRunsDto));
611611
expect(runs).to.be.an('array');
612-
expect(runs).to.have.lengthOf(6);
612+
expect(runs).to.have.lengthOf(7);
613613
expect(runs.every((run) => run.ctfFileCount >= 500)).to.be.true;
614614
});
615615

@@ -633,7 +633,7 @@ module.exports = () => {
633633
tfFileCount.operator = '=';
634634
({ runs } = await new GetAllRunsUseCase().execute(getAllRunsDto));
635635
expect(runs).to.be.an('array');
636-
expect(runs).to.have.lengthOf(7);
636+
expect(runs).to.have.lengthOf(8);
637637
expect(runs.every((run) => run.tfFileCount === 30)).to.be.true;
638638

639639
tfFileCount.operator = '>=';

0 commit comments

Comments
 (0)