Skip to content

Commit

Permalink
fix: slack flaky test (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
capJavert authored Aug 13, 2024
1 parent 5923413 commit db52d15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ const getIntegration = async ({

describe('slack integration', () => {
beforeEach(async () => {
const createdAt = new Date();

await saveFixtures(con, User, usersFixture);
await saveFixtures(con, Source, sourcesFixture);
await con.getRepository(UserIntegration).save([
Expand Down Expand Up @@ -169,18 +171,21 @@ describe('slack integration', () => {
userId: '1',
role: SourceMemberRoles.Admin,
referralToken: 'squadslacktoken1',
createdAt: addSeconds(createdAt, 1),
},
{
sourceId: 'squadslack',
userId: '2',
role: SourceMemberRoles.Admin,
referralToken: 'squadslacktoken2',
createdAt: addSeconds(createdAt, 2),
},
{
sourceId: 'squadslack',
userId: '3',
role: SourceMemberRoles.Member,
referralToken: 'squadslacktoken3',
createdAt: addSeconds(createdAt, 3),
},
]);
});
Expand Down

0 comments on commit db52d15

Please sign in to comment.