Skip to content

Commit 65fa6a2

Browse files
committed
Update seeders so run 106 do not have first TF timestamp
1 parent 9cab1e7 commit 65fa6a2

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

lib/database/seeders/20200713103855-runs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,7 +2658,6 @@ module.exports = {
26582658
time_o2_end: '2019-08-09 14:00:00',
26592659
time_trg_start: '2019-08-08 13:00:00',
26602660
time_trg_end: '2019-08-09 14:00:00',
2661-
first_tf_timestamp: '2019-08-09 13:00:00',
26622661
run_type_id: 12,
26632662
run_quality: 'good',
26642663
n_detectors: 15,
@@ -2734,9 +2733,10 @@ module.exports = {
27342733
id: 108,
27352734
run_number: 108,
27362735
time_o2_start: '2019-08-08 13:00:00',
2737-
time_o2_end: '2019-08-09 14:00:00',
2736+
first_tf_timestamp: '2019-08-08 13:00:00',
27382737
time_trg_start: '2019-08-08 13:00:00',
27392738
time_trg_end: '2019-08-09 14:00:00',
2739+
time_o2_end: '2019-08-09 14:00:00',
27402740
run_type_id: 12,
27412741
run_quality: 'good',
27422742
n_detectors: 15,

test/lib/server/externalServicesSynchronization/ccdb/CcdbSynchronizer.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const dummyCcdbRunInfo = JSON.parse(`{
4848

4949
module.exports = () => {
5050
it('Should successfully update good physics runs first and last TF timestamps', async () => {
51-
const expectedRunNumber = 108;
51+
const expectedRunNumber = 106;
5252
const synchronizeAfter = new Date('2019-08-09T00:00:00');
5353

5454
const goodPhysicsRuns = await getGoodPhysicsRunsWithMissingTfTimestamps(synchronizeAfter);
@@ -66,7 +66,7 @@ module.exports = () => {
6666
const updatedGoodPhysicsRuns = await getGoodPhysicsRunsWithMissingTfTimestamps(new Date('2019-08-09T00:00:00'));
6767
expect(updatedGoodPhysicsRuns).to.length(0);
6868

69-
const updatedRun = await runService.getOrFail({ runNumber: 108 });
69+
const updatedRun = await runService.getOrFail({ runNumber: 106 });
7070
expect(updatedRun.firstTfTimestamp).to.equal(1565262000000);
7171
expect(updatedRun.lastTfTimestamp).to.equal(1565265600000);
7272
});

test/lib/server/externalServicesSynchronization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ const CcdbSuite = require('./ccdb/index.js');
33

44
module.exports = () => {
55
describe('MonALISA', MonalisaSuite);
6-
describe('MonALISA', CcdbSuite);
6+
describe('CCDB', CcdbSuite);
77
};

test/public/qcFlags/forDataPassCreation.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module.exports = () => {
112112
});
113113

114114
await page.waitForSelector('button#submit[disabled]');
115-
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '09/08/2019\n13:00:00');
115+
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '08/08/2019\n13:00:00');
116116
await expectInnerText(page, 'table > tbody > tr > td:nth-child(4) > div', '09/08/2019\n14:00:00');
117117
await page.waitForSelector('input[type="time"]', { hidden: true, timeout: 250 });
118118

@@ -144,7 +144,7 @@ module.exports = () => {
144144
});
145145

146146
await page.waitForSelector('button#submit[disabled]');
147-
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '09/08/2019\n13:00:00');
147+
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '08/08/2019\n13:00:00');
148148
await expectInnerText(page, 'table > tbody > tr > td:nth-child(4) > div', '09/08/2019\n14:00:00');
149149
await page.waitForSelector('input[type="time"]', { hidden: true });
150150

@@ -168,7 +168,7 @@ module.exports = () => {
168168

169169
await expectRowValues(page, 1, {
170170
flagType: 'Limited acceptance',
171-
from: '09/08/2019\n13:01:01',
171+
from: '08/08/2019\n13:01:01',
172172
to: '09/08/2019\n13:50:59',
173173
});
174174
});

test/public/qcFlags/forSimulationPassCreation.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ module.exports = () => {
9898
});
9999

100100
await page.waitForSelector('button#submit[disabled]');
101-
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '09/08/2019\n13:00:00');
101+
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '08/08/2019\n13:00:00');
102102
await expectInnerText(page, 'table > tbody > tr > td:nth-child(4) > div', '09/08/2019\n14:00:00');
103103
await page.waitForSelector('input[type="time"]', { hidden: true, timeout: 250 });
104104

@@ -130,7 +130,7 @@ module.exports = () => {
130130
});
131131

132132
await page.waitForSelector('button#submit[disabled]');
133-
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '09/08/2019\n13:00:00');
133+
await expectInnerText(page, 'table > tbody > tr > td:nth-child(3) > div', '08/08/2019\n13:00:00');
134134
await expectInnerText(page, 'table > tbody > tr > td:nth-child(4) > div', '09/08/2019\n14:00:00');
135135
await page.waitForSelector('input[type="time"]', { hidden: true, timeout: 250 });
136136

@@ -154,7 +154,7 @@ module.exports = () => {
154154

155155
await expectRowValues(page, 1, {
156156
flagType: 'Limited acceptance',
157-
from: '09/08/2019\n13:01:01',
157+
from: '08/08/2019\n13:01:01',
158158
to: '09/08/2019\n13:50:59',
159159
});
160160
});

0 commit comments

Comments
 (0)