M220JS Timeout lab

Getting this error for timeout lab

ryancourtney@Ryans-MacBook-Air-8 mflix-js % npm test -t connection-pooling

server@1.0.0 test /Users/ryancourtney/Desktop/mflix-js
jest --passWithNoTests “connection-pooling”

Determining test suites to run…Setup Mongo Connection

RUNS test/connection-pooling.test.js
events.js:187
throw er; // Unhandled ‘error’ event
^

Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27)
Emitted ‘error’ event on Connection instance at:
at TLSSocket. (/Users/ryancourtney/Desktop/mflix-js/node_modules/mongodb/lib/core/connection/connection.js:321:10)
at Object.onceWrapper (events.js:300:26)
at TLSSocket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
name: ‘MongoNetworkError’,
errorLabels: [ ‘TransientTransactionError’ ],
[Symbol(mongoErrorContextSymbol)]: {}
}
npm ERR! Test failed. See above for more details.
ryancourtney@Ryans-MacBook-Air-8 mflix-js %

Hi @Ryan_Courtney_8612,

Thanks for creating a new topic. :slight_smile:

can you try with wtimeout instead of wtimeoutMS ?

Kanika

Still getting same error