File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
test/integration/client-side-operations-timeout Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -58,4 +58,7 @@ export MONGODB_URI=${MONGODB_URI}
58
58
export LOAD_BALANCER=${LOAD_BALANCER}
59
59
export TEST_CSFLE=${TEST_CSFLE}
60
60
export COMPRESSOR=${COMPRESSOR}
61
- npm run check:integration-coverage
61
+
62
+ for run in {1..100}; do
63
+ npm run check:integration-coverage
64
+ done
Original file line number Diff line number Diff line change @@ -316,6 +316,7 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
316
316
this . delayedTimeoutId = setTimeout ( ( ) => {
317
317
const message = `connection ${ this . id } to ${ this . address } timed out` ;
318
318
const beforeHandshake = this . hello == null ;
319
+ console . log ( this . socketTimeoutMS , this . hello , this . socket ) ;
319
320
this . cleanup ( new MongoNetworkTimeoutError ( message , { beforeHandshake } ) ) ;
320
321
} , 1 ) . unref ( ) ; // No need for this timer to hold the event loop open
321
322
}
@@ -449,6 +450,12 @@ export class Connection extends TypedEventEmitter<ConnectionEvents> {
449
450
options . socketTimeoutMS ??
450
451
options ?. timeoutContext ?. getSocketTimeoutMS ( ) ??
451
452
this . socketTimeoutMS ;
453
+ console . log (
454
+ 'setTimeout' ,
455
+ options . socketTimeoutMS ,
456
+ options . timeoutContext ?. getSocketTimeoutMS ( ) ,
457
+ this . socketTimeoutMS
458
+ ) ;
452
459
this . socket . setTimeout ( timeout ) ;
453
460
454
461
try {
Original file line number Diff line number Diff line change @@ -20,14 +20,10 @@ const skippedTests = {
20
20
'timeoutMS applies to full resume attempt in a next call' : 'TODO(DRIVERS-3006)' ,
21
21
'timeoutMS is refreshed for getMore if maxAwaitTimeMS is set' : 'TODO(DRIVERS-3018)' ,
22
22
'operation succeeds after one socket timeout - aggregate on collection' :
23
- 'TODO(NODE-6863): fix flaky test' ,
24
- 'socketTimeoutMS is ignored if timeoutMS is set - dropIndex on collection' :
25
- 'TODO(NODE-6862): fix flaky test' ,
26
- 'operation fails after two consecutive socket timeouts - aggregate on collection' :
27
- 'TODO(NODE-6867): fix flaky test'
23
+ 'TODO(NODE-6863): fix flaky test'
28
24
} ;
29
25
30
- describe ( 'CSOT spec tests' , function ( ) {
26
+ describe . only ( 'CSOT spec tests' , function ( ) {
31
27
const specs = loadSpecTests ( 'client-side-operations-timeout' ) ;
32
28
for ( const spec of specs ) {
33
29
for ( const test of spec . tests ) {
You can’t perform that action at this time.
0 commit comments