Skip to content

Commit 2e50a99

Browse files
committed
[O2B-1506] Fixed GehAllLhcFillsUseCase run duration tests
1 parent adc6fd6 commit 2e50a99

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/lib/usecases/lhcFill/GetAllLhcFillsUseCase.test.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ module.exports = () => {
102102
})
103103

104104
// Beam duration filter tests
105-
106105
it('should only contain specified stable beam durations, < 12:00:00', async () => {
107106
getAllLhcFillsDto.query = { filter: { beamDuration: '43200', beamDurationOperator: '<' } };
108107
const { lhcFills } = await new GetAllLhcFillsUseCase().execute(getAllLhcFillsDto);
@@ -156,7 +155,7 @@ module.exports = () => {
156155

157156
expect(lhcFills).to.be.an('array').and.lengthOf(1)
158157
lhcFills.forEach((lhcFill) => {
159-
expect(lhcFill.runDuration).greaterThan(14400)
158+
expect(lhcFill.statistics.runsCoverage).greaterThan(14400)
160159
});
161160
})
162161

@@ -166,7 +165,7 @@ module.exports = () => {
166165

167166
expect(lhcFills).to.be.an('array').and.lengthOf(1)
168167
lhcFills.forEach((lhcFill) => {
169-
expect(lhcFill.runDuration).greaterThan(18000)
168+
expect(lhcFill.statistics.runsCoverage).greaterThan(18000)
170169
});
171170
})
172171

@@ -176,7 +175,7 @@ module.exports = () => {
176175

177176
expect(lhcFills).to.be.an('array').and.lengthOf(1)
178177
lhcFills.forEach((lhcFill) => {
179-
expect(lhcFill.runDuration).greaterThan(18000)
178+
expect(lhcFill.statistics.runsCoverage).greaterThan(18000)
180179
});
181180
})
182181

@@ -187,7 +186,7 @@ module.exports = () => {
187186

188187
expect(lhcFills).to.be.an('array').and.lengthOf(1)
189188
lhcFills.forEach((lhcFill) => {
190-
expect(lhcFill.runDuration).greaterThan(18000)
189+
expect(lhcFill.statistics.runsCoverage).greaterThan(18000)
191190
});
192191
})
193192

@@ -197,7 +196,7 @@ module.exports = () => {
197196

198197
expect(lhcFills).to.be.an('array').and.lengthOf(1)
199198
lhcFills.forEach((lhcFill) => {
200-
expect(lhcFill.runDuration).greaterThan(23459)
199+
expect(lhcFill.statistics.runsCoverage).greaterThan(23459)
201200
});
202201
})
203202
};

0 commit comments

Comments
 (0)