Testmoviecount failing


buildfailure|690x290

My testmoviecount test in failing when running from intellij IDE and through Maven as well!. However I can see the landing page with the movies but on the status page all the test fail.

My connection string is “mongodb+srv://m220student:m220password@mflix-wvamy.mongodb.net/test?retryWrites=true” which is updated in the application.properties file as well as the MongoClientLesson page.

Does this mean that my mongorestore has not worked as by connecting my cluster via shell and using the command db.movies.count() I am getting the result as 25000 instead of 45993countcountIDE

Kindly assist.

Hi @saxenaharsh,

Yes, you are right. Please re-import the database using the same command. Make sure to use --drop parameter with mongorestore.

Kanika

Will this work on mongodb 4.0 or only on 3.6 ?

Regards
Harsh

Any version higher or equal than 3.6 will work.

Kanika

Thank you for your assistance, it worked for me.

Regards
Harsh