Can’t pass the test.
Error:
// running tests
Creating and saving a db item should succeed (Test timed out)
// tests completed
Can’t pass the test.
Error:
// running tests
Creating and saving a db item should succeed (Test timed out)
// tests completed
I had an isssue when I first started these topics in that the connection to the database wasn’t actually established and wasn’t checked in the first tests - check your Mongo URI in the env file and make sure it’s in the format:
“mongodb+srv://youruser:yourpass@yourclustrer.mongodb.net/yourdatabase?retryWrites=true&w=majority”
It is in correct form.
It is solved. I changed my password in mongodb cloud server and and the test worked. But after a minute, it started to give time out error again.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.