Skip to content

Commit

Permalink
fix: noticed a flappy test
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Dec 13, 2024
1 parent 3b159f6 commit fc8cd81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posthog/rbac/test/test_user_access_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ def test_filters_project_queryset_based_on_acs_always_allows_org_admin(self):
filtered_teams = list(
self.user_access_control.filter_queryset_by_access_level(Team.objects.all(), include_all_if_admin=True)
)
assert filtered_teams == [self.team, team2, team3]
assert sorted(filtered_teams, key=lambda team: team.id) == sorted(
[self.team, team2, team3], key=lambda team: team.id
)

def test_organization_access_control(self):
# A team isn't always available like for organization level routing
Expand Down

0 comments on commit fc8cd81

Please sign in to comment.