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: Some skipped tests #130

Conversation

syphax-bouazzouni
Copy link

Changes

Fix test_reentrant_queries test

I think (not totally sure) that the original goal of this test was to ensure that parallel reading and writing work. It creates two threads one that writes into the store and another one at the same time fetches data.

The test fails because it was expecting that the first thread (the writing one) was still alive after the end of the second one. But it wasn't the case the writing was too fast and ended first.

The solution was to make the first thread take more time (by sleeping for 1.5 seconds)

Fix test_embed_struct

It was already working, just skipped for no apparent reason

Update test_inverse_on_collection test

Still skipped, because it does not work or is not implemented even if it is an important feature.

Issue.in(john).all # works and return 5 issues
# but the inverse does not work 
User.find("John").include(:issues).first.issues # issues empty 

@ncbo-deployer
Copy link

ncbo-deployer commented Dec 19, 2022 via email

@codecov-commenter
Copy link

Codecov Report

Merging #130 (a30af42) into master (077c674) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #130   +/-   ##
=======================================
  Coverage   85.27%   85.27%           
=======================================
  Files          20       20           
  Lines        2037     2037           
=======================================
  Hits         1737     1737           
  Misses        300      300           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@alexskr alexskr changed the base branch from master to develop March 15, 2024 04:39
@syphax-bouazzouni syphax-bouazzouni marked this pull request as draft April 17, 2024 14:49
@syphax-bouazzouni
Copy link
Author

replaced with #150

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.

3 participants