Chapter 4: Resiliency Ticket: Connection Pooling

while testing the connection pooling , i have changed the index.js to following

MongoClient.connect(
process.env.MFLIX_DB_URI,
// TODO: Connection Pooling
// Set the poolSize to 50 connections.
// TODO: Timeouts
// Set the write timeout limit to 2500 milliseconds.
{ useNewUrlParser: true, poolSize: 50 },
)

but still i am getting the following error while testing

Expected: 50
Received: undefined

   8 |   test("Connection pool size is 50", async () => {
   9 |     const response = await MoviesDAO.getConfiguration()
> 10 |     expect(response.poolSize).toBe(50)
     |                               ^
  11 |   })
  12 | })

Code is correct. Check your network connectivity to the cluster and try again.

Kanika