@@ -19,12 +19,7 @@ import { getSymbolFrom, sleep } from '../../tools/utils';
19
19
import { TestConfiguration } from '../runner/config' ;
20
20
import { CmapEvent , CommandEvent , EntitiesMap , UnifiedChangeStream } from './entities' ;
21
21
import { expectErrorCheck , matchesEvents , resultCheck } from './match' ;
22
- import type {
23
- ExpectedCmapEvent ,
24
- ExpectedCommandEvent ,
25
- ExpectedEventsForClient ,
26
- OperationDescription
27
- } from './schema' ;
22
+ import type { ExpectedEvent , ExpectedEventsForClient , OperationDescription } from './schema' ;
28
23
import { translateOptions } from './unified-utils' ;
29
24
30
25
interface OperationFunctionParams {
@@ -449,8 +444,11 @@ operations.set('waitForEvent', async ({ entities, operation }) => {
449
444
client,
450
445
event,
451
446
count
452
- } : { client : string ; event : ExpectedCmapEvent | ExpectedCommandEvent ; count : number } =
453
- operation . arguments ! ;
447
+ } : {
448
+ client : string ;
449
+ event : ExpectedEvent ;
450
+ count : number ;
451
+ } = operation . arguments ! as any ;
454
452
expect ( count ) . to . be . a ( 'number' , 'Error in waitForEvent operation, invalid count' ) ;
455
453
456
454
const mongoClient = entities . getEntity ( 'client' , client , true ) ;
@@ -488,8 +486,11 @@ operations.set('assertEventCount', async ({ entities, operation }) => {
488
486
client,
489
487
event,
490
488
count
491
- } : { client : string ; event : ExpectedCmapEvent | ExpectedCommandEvent ; count : number } =
492
- operation . arguments ! ;
489
+ } : {
490
+ client : string ;
491
+ event : ExpectedEvent ;
492
+ count : number ;
493
+ } = operation . arguments ! as any ;
493
494
expect ( count ) . to . be . a ( 'number' , 'Error in assertEventCount operation, invalid count' ) ;
494
495
495
496
const mongoClient = entities . getEntity ( 'client' , client , true ) ;
0 commit comments