Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Fix flaky embargo tests #2441

Merged
merged 1 commit into from
Sep 26, 2024
Merged

[FIX] Fix flaky embargo tests #2441

merged 1 commit into from
Sep 26, 2024

Conversation

mark-dce
Copy link
Contributor

ISSUE
The embargo specs fail intermittently when run in the full suite.

DIAGNOSIS
Depending on the randomized test order, the admin tests may run before the regular user tests. In some test orders, the admin user may remain logged in while the tests for regular users are run resulting in admin-only data being rendered in the views.

FIX
Explicitly log out any user from a previous test when testing regular or unauthenticated user views.

**ISSUE**
The embargo specs fail intermittently when run in the full suite.

**DIAGNOSIS**
Depending on the randomized test order, the admin tests may run
before the regular user tests. In some test orders, the admin
user may remain logged in while the tests for regular users are run
resulting in admin-only data being rendered in the views.

**FIX**
Explicitly log out any user from a previous test when testing
regular or unauthenticated user views.
@coveralls
Copy link

Coverage Status

coverage: 91.799% (-1.4%) from 93.178%
when pulling 71006ca on fix_flaky_test
into 41043dc on main.

@coveralls
Copy link

Coverage Status

coverage: 96.734% (+3.6%) from 93.178%
when pulling 71006ca on fix_flaky_test
into 41043dc on main.

@mark-dce mark-dce merged commit 1d5af52 into main Sep 26, 2024
1 check passed
@mark-dce mark-dce deleted the fix_flaky_test branch September 26, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants