Skip to content

Commit

Permalink
fix: flaky unit test (#708)
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree authored Nov 16, 2023
1 parent 38b0c53 commit e077e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/instances/src/module/instances/instance.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ describe('/instances', () => {
});

expect(response.body.id).toEqual(body.id);
expect(response.body.id).toEqual(instance!.id);
expect(instance?.id).toEqual(body.id);
expect(response.body.id).toEqual(instance?._id);
expect(instance?._id).toEqual(body.id);
expect(instance?.createdAt).toBeDefined();
});
});
Expand Down

0 comments on commit e077e4e

Please sign in to comment.