Skip to content

Commit

Permalink
testfix: avoid nondeterministic test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Oct 18, 2024
1 parent 81e1fc3 commit 2bb7836
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def populate_counts(self, institution, user, user2):
department='Biology dept',
public_project_count=6,
private_project_count=5,
).save()
).save(refresh=True)

UserInstitutionProjectCounts(
user_id=user2._id,
Expand All @@ -101,7 +101,7 @@ def populate_more_counts(self, institution, user, user2, user3, populate_counts)
department='Psychology dept',
public_project_count=int(10 * random()),
private_project_count=int(10 * random()),
).save()
).save(refresh=True)

UserInstitutionProjectCounts(
user_id=user3._id,
Expand Down

0 comments on commit 2bb7836

Please sign in to comment.