@@ -399,33 +399,6 @@ module.exports = () => {
399399
400400 it ( 'should successfully filter by GAQ notBadFraction' , async ( ) => {
401401 const dataPassId = 1 ;
402- const runNumber = 107 ;
403- const commonScopte = {
404- runNumber,
405- dataPassIdentifier : { id : dataPassId } ,
406- } ;
407- const relations = { user : { roles : [ 'admin' ] , externalUserId : 1 } } ;
408- // eslint-disable-next-line require-jsdoc
409- const t = ( timeString ) => new Date ( `2019-08-08 ${ timeString } ` ) . getTime ( ) ;
410- const goodFlagTypeId = 3 ;
411- const mcReproducibleFlagTypeId = 11 ;
412- let createdFlagIds = [ ] ;
413-
414- let flagIds = await qcFlagService . create (
415- [ { from : null , to : null , flagTypeId : goodFlagTypeId } ] ,
416- { ...commonScopte , detectorIdentifier : { detectorName : 'EMC' } } ,
417- relations ,
418- ) ;
419- createdFlagIds = [ ...createdFlagIds , ...flagIds ] ;
420-
421- flagIds = await qcFlagService . create (
422- [ { from : null , to : t ( '13:30:00' ) , flagTypeId : goodFlagTypeId } ] ,
423- [ { from : t ( '13:30:00' ) , to : null , flagTypeId : mcReproducibleFlagTypeId } ] ,
424- { ...commonScopte , detectorIdentifier : { detectorName : 'CPV' } } ,
425- relations ,
426- ) ;
427- createdFlagIds = [ ...createdFlagIds , ...flagIds ] ;
428-
429402 {
430403 const response = await request ( server ) . get ( `/api/runs?filter[dataPassIds][]=${ dataPassId } &filter[gaq][notBadFraction][<]=0.8` ) ;
431404
@@ -445,8 +418,6 @@ module.exports = () => {
445418 expect ( runs ) . to . be . an ( 'array' ) ;
446419 expect ( runs ) . to . have . lengthOf ( 0 ) ;
447420 }
448-
449- await Promise . all ( createdFlagIds . map ( ( flagId ) => qcFlagService . delete ( flagId ) ) ) ;
450421 } ) ;
451422
452423 it ( 'should return http status 400 if updatedAt from larger than to' , async ( ) => {
0 commit comments