FiddlersCode / leopold

A virtual agent for my violin playing!
1 stars 0 forks source link

Investigate transient failures with the db tests #57

Closed FiddlersCode closed 4 years ago

FiddlersCode commented 4 years ago

● Leopold Mongo Client Wrapper › DB queries › ss100.T30 gets all concerts for a specific month

FiddlersCode commented 4 years ago

Leopold Mongo Client Wrapper › DB queries › ss100.T30 gets all concerts for a specific month

expect(received).toBe(expected) // Object.is equality

Expected: 2
Received: 0

  72 |             };
  73 |             const concerts = await leopoldMongoClientWrapper.getGigs(filter);
> 74 |             expect(concerts.length).toBe(2);
     |                                     ^
  75 |             concerts.forEach((concert) => {
  76 |                 expect(concert.startDate.getMonth()).toEqual(month.jsMonth);
  77 |             })
FiddlersCode commented 4 years ago

● Leopold Mongo Client Wrapper › DB insertions › ss100.T15: add multiple gigs to the db

expect(received).toEqual(expected) // deep equality

Expected: 0
Received: 4

  65 |             leopoldMongoClientWrapper.addGigs(gigsToAdd);
  66 |             const gigsAdded = await gigsCollection.find({dressCode}).toArray();
> 67 |             expect(gigsToAdd.length).toEqual(gigsAdded.length);
     |                                      ^
  68 | 
FiddlersCode commented 4 years ago

Hopefully fixed as part of https://github.com/FiddlersCode/leopold/pull/75