Error : Chapter 1: Driver Setup Driver Connection

Test set: mflix.lessons.MongoClientLesson

Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 44.736 s <<< FAILURE! - in mflix.lessons.MongoClientLesson
MongoCollectionInstance(mflix.lessons.MongoClientLesson) Time elapsed: 10.395 s <<< FAILURE!
java.lang.AssertionError: expected:<20> but was:<0>
at mflix.lessons.MongoClientLesson.MongoCollectionInstance(

MongoDatabaseInstance(mflix.lessons.MongoClientLesson) Time elapsed: 15.209 s <<< FAILURE!
at mflix.lessons.MongoClientLesson.MongoDatabaseInstance(

I got this error too - turns out the database name in the Sample Dataset is called sample_mflix instead of mflix.

To fix this: update the database name at lines 124 and 157 to sample_mflix