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

added blocking commands tests #169

Merged

Conversation

avifenesh
Copy link
Member

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think a single tests justifies having it in a new file, its better to keep them together in the test_cluster_async.rs

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my understanding we are planing to create state restoration at some point, so i thought it is better to create a new file ready to add massive tests when we will have the support. can move back if you think its better.


use crate::support::*;
#[tokio::test]
async fn test_blocking_command_when_cluster_drops() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why to invent a different logic and form - copy paste and modify:

fn test_async_cluster_reconnect_after_complete_server_disconnect() {

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can add your test below that one

@avifenesh avifenesh requested a review from ikolomi July 4, 2024 13:40
@avifenesh avifenesh force-pushed the test_blocking_commands branch 2 times, most recently from 7be1859 to 21619e6 Compare July 4, 2024 17:24
@avifenesh avifenesh merged commit 2fac27a into amazon-contributing:main Jul 14, 2024
10 checks passed
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.

2 participants