-
-
Notifications
You must be signed in to change notification settings - Fork 73
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: deprecated callbacks passed to mongodb, in post
model
#680
Conversation
post
model
post
modelpost
model
cause: some refs were probably not detected earlier, because of complicated callback logic contributes to #580.
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
… import("/Users/adrienjoly/Code/openwhyd/app/models/config")'`
…track` => make sure that db is cleared between each test
…isolated/independant from other tests of the suite
…as `track` documents are created lazily
Note about the following FIXME comment:
I believe that I have reproduced that issue in fix test, to match with schema of posts, as seen in failing After investigating locally:
EDIT: Indeed, tests work as expected when skipping the Hypothesis: bad state reset could be caused by |
07ca189
to
f10f9ee
Compare
…685) Contributes to #684. * fix test helpers based on trouble while working on PR #680 * fix: check that we're on test database before refreshing db caches * report cleanup errors if any * fixtures: make test users immutable * 🧹 `failed to kill by pid: kill ESRCH` errors when running integration/api tests * skip flaky unit test * migrate playlist API tests to `OpenwhydTestEnv` * fix `listen EADDRINUSE: address already in use :::8080` when api tests are running on CI, with coverage cf https://github.com/openwhyd/openwhyd/actions/runs/6000177975/job/16271736742#step:6:266 * refactor(fixtures): extract resetTestDb() from cleanup() * ✨ use OpenwhydTestEnv.reset() instead of fixtures.cleanup(), in playlist API tests * extract and increase timeout/tolerance for algolia (3rd-party) tests cf `Exceeded timeout of 20000 ms for a hook` at https://github.com/openwhyd/openwhyd/actions/runs/6000432446/job/16272475960#step:5:81
Contributes to #634.