Skip to content

Commit

Permalink
[TECH] Corriger un test flaky sur le tri des prescrits d'une organisa…
Browse files Browse the repository at this point in the history
…tion (PIX-15165) (#10469)
  • Loading branch information
ThomasBazin authored Nov 6, 2024
1 parent 440a358 commit a438791
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,16 +557,16 @@ describe('Integration | Infrastructure | Repository | Organization Learner', fun
const thirdLearner = databaseBuilder.factory.prescription.organizationLearners.buildOrganizationLearner({
organizationId,
firstName: 'Toto',
lastName: 'auberto',
lastName: 'auberti',
});

await databaseBuilder.commit();

const result = await organizationLearnerRepository.findPaginatedLearners({ organizationId });

expect(result.learners).lengthOf(3);
expect(result.learners[0].id).to.equal(secondLearner.id);
expect(result.learners[1].id).to.equal(thirdLearner.id);
expect(result.learners[0].id).to.equal(thirdLearner.id);
expect(result.learners[1].id).to.equal(secondLearner.id);
expect(result.learners[2].id).to.equal(firstLearner.id);
});
});
Expand Down

0 comments on commit a438791

Please sign in to comment.