Skip to content

Commit

Permalink
de-flake a test (#1166)
Browse files Browse the repository at this point in the history
* reduce name collisions

* test 1000 times

* test once not 1000 times
  • Loading branch information
ChristopherChudzicki authored Jun 25, 2024
1 parent c1eb250 commit bace7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontends/api/src/test-utils/factories/learningResources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const learningResourceBaseSchool: Factory<LearningResourceBaseSchool> = (
) => {
return {
id: uniqueEnforcerId.enforce(() => faker.number.int()),
name: faker.lorem.word(),
name: faker.lorem.words(3),
url: faker.internet.url(),
...overrides,
}
Expand Down Expand Up @@ -118,7 +118,7 @@ const learnigResourceSchool: Factory<LearningResourceSchool> = (
) => {
return {
id: uniqueEnforcerId.enforce(() => faker.number.int()),
name: faker.lorem.word(),
name: faker.lorem.words(3),
url: faker.internet.url(),
departments: repeat(learningResourceBaseDepartment),
...overrides,
Expand Down

0 comments on commit bace7e4

Please sign in to comment.