-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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: flaky test when sync metadata #21306
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21306 +/- ##
==========================================
- Coverage 66.39% 66.27% -0.12%
==========================================
Files 1784 1789 +5
Lines 68232 68291 +59
Branches 7263 7273 +10
==========================================
- Hits 45305 45263 -42
- Misses 21058 21153 +95
- Partials 1869 1875 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
20661a5
to
72d2963
Compare
db.session.delete(table) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
table
isn't persisted.
@@ -453,7 +453,8 @@ def test_fetch_metadata_for_updated_virtual_table(self): | |||
|
|||
# make sure the columns have been mapped properly | |||
assert len(table.columns) == 4 | |||
table.fetch_metadata(commit=False) | |||
with db.session.no_autoflush: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the table in client memory other than writing to DB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! LGTM
SUMMARY
trying to fix a flaky test on the master
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION