make the tasks migrations test stable

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-03-07 14:56:36 +01:00
parent ada14448a6
commit c2113b15a0
@@ -71,8 +71,11 @@ describe('migrations', () => {
await migrateDownOnce(knex);
await expect(knex('backstage_backend_tasks__tasks')).rejects.toThrow(
/backstage_backend_tasks__tasks/,
// This looks odd - you might expect a .toThrow at the end but that
// actually is flaky for some reason specifically on sqlite when
// performing multiple runs in sequence
await expect(knex('backstage_backend_tasks__tasks')).rejects.toEqual(
expect.anything(),
);
await knex.destroy();