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: use a non threaded server in SeleniumTestCase #1325

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

razvan-pro
Copy link
Collaborator

@razvan-pro razvan-pro commented Mar 30, 2022

This change is Reviewable

@razvan-pro razvan-pro self-assigned this Mar 30, 2022
Copy link
Contributor

@dionizh dionizh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @razvan-pro)


rapid_router_test_settings.py, line 10 at r1 (raw file):

SELENIUM_WEBDRIVERS = {
    "default": {"callable": webdriver.Chrome, "args": (), "kwargs": {}},
    "firefox": {"callable": webdriver.Firefox, "args": (), "kwargs": {}},

Is this part of the issue or just cleaning up? (out of interest)


game/end_to_end_tests/selenium_test_case.py, line 21 at r1 (raw file):

    """
    Replaces ThreadedWSGIServer with WSGIServer as the threaded one doesn't close the DB connections properly, thus
    triggering random "DB table locked" errors.

Does it mean the tests are gonna be slower?

Copy link
Collaborator Author

@razvan-pro razvan-pro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dionizh)


rapid_router_test_settings.py, line 10 at r1 (raw file):

Previously, dionizh (Dioni Zhong) wrote…

Is this part of the issue or just cleaning up? (out of interest)

No, just spotted it and cleaning up 🙂


game/end_to_end_tests/selenium_test_case.py, line 21 at r1 (raw file):

Previously, dionizh (Dioni Zhong) wrote…

Does it mean the tests are gonna be slower?

Hm, I thought maybe, but they seem to be about the same time (actually faster somehow): 9m34s on this PR vs 9m52s on the previous one that passed 🙂

Copy link
Contributor

@dionizh dionizh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @razvan-pro)


game/end_to_end_tests/selenium_test_case.py, line 21 at r1 (raw file):

Previously, razvan-pro (Razvan Mahu) wrote…

Hm, I thought maybe, but they seem to be about the same time (actually faster somehow): 9m34s on this PR vs 9m52s on the previous one that passed 🙂

Great!

@codecov
Copy link

codecov bot commented Mar 30, 2022

Codecov Report

Merging #1325 (569996d) into master (7671b3c) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1325      +/-   ##
==========================================
- Coverage   91.59%   91.43%   -0.17%     
==========================================
  Files          98       98              
  Lines        5261     5265       +4     
==========================================
- Hits         4819     4814       -5     
- Misses        442      451       +9     
Impacted Files Coverage Δ
game/urls.py 100.00% <ø> (ø)
rapid_router_test_settings.py 100.00% <ø> (ø)
game/__init__.py 100.00% <100.00%> (ø)
game/end_to_end_tests/selenium_test_case.py 100.00% <100.00%> (ø)
game/end_to_end_tests/custom_handler.py 43.75% <0.00%> (-56.25%) ⬇️

@razvan-pro razvan-pro merged commit 6bdf858 into master Mar 30, 2022
@razvan-pro razvan-pro deleted the fix-selenium-test-case branch March 30, 2022 13:06
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