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

Unify tests for indexes #2866

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Unify tests for indexes #2866

merged 2 commits into from
Jun 21, 2023

Conversation

AlekSi
Copy link
Member

@AlekSi AlekSi commented Jun 20, 2023

Description

Use the same variable names, order, error checks, etc, as in other tests. Close cursors.
That prevents tests from panicking with SQLite (assert was used where require should be).

Readiness checklist

  • I added/updated unit tests.
  • I added/updated integration/compatibility tests.
  • I added/updated comments and checked rendering.
  • I made spot refactorings.
  • I updated user documentation.
  • I ran task all, and it passed.
  • I ensured that PR title is good enough for the changelog.
  • (for maintainers only) I set Reviewers (@FerretDB/core), Labels, Project and project's Sprint fields.
  • I marked all done items in this checklist.

@AlekSi AlekSi added the code/chore Code maintenance improvements label Jun 20, 2023
@AlekSi AlekSi added this to the Next milestone Jun 20, 2023
@AlekSi AlekSi self-assigned this Jun 20, 2023
@AlekSi AlekSi marked this pull request as ready for review June 20, 2023 15:16
@AlekSi AlekSi requested a review from a team as a code owner June 20, 2023 15:16
@AlekSi AlekSi requested review from w84thesun and rumyantseva June 20, 2023 15:16
@AlekSi AlekSi enabled auto-merge (squash) June 20, 2023 15:16
@AlekSi AlekSi requested review from a team, chilagrow and noisersup June 20, 2023 15:16
@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #2866 (ef0b65b) into main (e3c5150) will decrease coverage by 4.39%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2866      +/-   ##
==========================================
- Coverage   64.30%   59.92%   -4.39%     
==========================================
  Files         448      448              
  Lines       23023    23023              
==========================================
- Hits        14806    13797    -1009     
- Misses       7252     8246     +994     
- Partials      965      980      +15     

see 42 files with indirect coverage changes

Flag Coverage Δ
integration 52.84% <ø> (-4.64%) ⬇️
mongodb 4.23% <ø> (ø)
pg 52.57% <ø> (-4.83%) ⬇️
shard-1 41.57% <ø> (-0.02%) ⬇️
shard-2 ?
shard-3 45.55% <ø> (+<0.01%) ⬆️
unit 24.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@AlekSi AlekSi merged commit 6d3967c into FerretDB:main Jun 21, 2023
@AlekSi AlekSi deleted the unify-tests branch June 21, 2023 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/chore Code maintenance improvements
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants