-
Notifications
You must be signed in to change notification settings - Fork 129
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
Integration test for CachingSession
#1237
base: branch-hackathon
Are you sure you want to change the base?
Integration test for CachingSession
#1237
Conversation
|
570b6ab
to
ccb7dcc
Compare
CachingSession
bdcbd63
to
d6f9285
Compare
Moves `SingleTargetLBP` used by `integration/tablets.rs` to `common/utils.rs` Code is identical except added `pub(crate)` to the struct and its `target` field. Moving it to allow usage in `integration/caching_session.rs` from subsequent commit and in other tests.
d6f9285
to
6950c0c
Compare
Pushed a new version. Let me know if should I mark conversations as resolved or if it's on the reviewer if he agrees with the new version. |
@@ -300,3 +300,31 @@ impl PerformDDL for CachingSession { | |||
self.execute_unpaged(query, &[]).await.map(|_| ()) | |||
} | |||
} | |||
|
|||
#[derive(Debug)] | |||
#[allow(dead_code)] |
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.
I don't understand why I had to add this line here even though I use this struct in my test. Shouldn't it be not a dead_code because of that?
Adds the integration test `caching_session::ensure_cache_is_used` for `CachingSession`. The test sends through the `scylla_proxy` several queries and verifies that the number of prepare requests is exactly as expected. If the cache is working correctly no extra prepare requests should appear. If it's not, the assertions will bring attention to that.
6950c0c
to
6cbd476
Compare
In this repo usually the author of the PR marks them as resolved. Is that the best way? I have no idea, maybe the reviewer should do this - we can discuss it in the future. |
Adds the integration test
caching_session::ensure_cache_is_used
forCachingSession
. The test sends through thescylla_proxy
several queries and verifies that the number of prepare requests is exactly as expected. If the cache is working correctly no extra prepare requests should appear. If it's not, the assertions will bring attention to that.Pre-review checklist
No public items introduced
./docs/source/
.No docs to change for the test. Docs for CachingSession are separate issue.
Fixes:
annotations to PR description.No open issues regarding integration tests for CachingSession