gavinvaske / the_recipe_book

0 stars 0 forks source link

Flaky Tests when Testing mongoose `unique: true` #370

Closed gavinvaske closed 1 month ago

gavinvaske commented 1 month ago

Description

There are several mongoose schemas that enforce unique attributes (i.e. customerId, email, ect)

The tests I have setup for this, are, connect to a test database, and save two objects with an identical attribute (one that MUST be unique)

These tests work... most of the time.

However they are flaky, and have been for months. They randomly, fail, for no apparent reason.

To Close this Issue

Investigate and squash this long standing bug