Skip to content

Flaky tests for removal of items #1

@abulvenz

Description

@abulvenz

Hi there,

Thanks for sharing your code kata. The structure looks really nice.
However, when running the tests they sometimes fail. On my machine for bills and products.

Maybe its located around this lines, because only the retrieval of items is waited for, but not for the removal.

const billList = await models.Bill.findAll();
billList.forEach(bill => bill.destroy());

Since it's a racing condition maybe you didn't encounter it.

Best
Andi

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions