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 Missing Client Tests. #127

Conversation

SanHalacogluImproving
Copy link

No description provided.

Copy link

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

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

This is hard to review because you've deleted-created the test files and it's hard to know what you've added.

I'd suggest a separate PR to rename the test files.
And another PR to add tests to the renamed test file.

Choose a reason for hiding this comment

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

Please move common tests to one place and use parametrized test to avoid code duplicating
Some tests remain non common though

Choose a reason for hiding this comment

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

Hmm, they had kept all these tests in one single class is breaking them up worth it?

Choose a reason for hiding this comment

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

We can do better!

Choose a reason for hiding this comment

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

Done!

@SanHalacogluImproving SanHalacogluImproving force-pushed the java/dev_SanH_add_SharedClientTests branch from 3412cf0 to 46963a5 Compare March 6, 2024 22:03
RedisClusterClient.CreateClient(commonClusterClientConfig().build()).get();

String key = "foo";
String value = "שלום hello 汉字";

Choose a reason for hiding this comment

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

We may need to use unicode codes to store that string to keep source files ASCII
\x<code> and so on
https://www.ssec.wisc.edu/~tomw/java/unicode.html


@Test
@SneakyThrows
public void close_client_throws_ExecutionException_with_ClosingException_cause() {

Choose a reason for hiding this comment

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

Please move to exception hadling tests

Choose a reason for hiding this comment

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

The tests in error handling are not parameterized which would require another PR change. Also, how would we go about initializing the clients if we close them once would we have to change it so it initializes the clients before each test?

@SanHalacogluImproving SanHalacogluImproving force-pushed the java/dev_SanH_add_SharedClientTests branch from 8c69197 to 0793cfb Compare March 12, 2024 21:31
Copy link

@jonathanl-bq jonathanl-bq left a comment

Choose a reason for hiding this comment

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

Don't have full context, but seems fine to me.

@SanHalacogluImproving SanHalacogluImproving merged commit 8334d28 into java/integ_SanH_add_SharedClientTests Mar 13, 2024
10 checks passed
SanHalacogluImproving added a commit that referenced this pull request Mar 18, 2024
* Java: Added Missing Client Tests. (#127)

* Minor update.

* Refactored to unicode litterals.
@SanHalacogluImproving SanHalacogluImproving deleted the java/dev_SanH_add_SharedClientTests branch March 19, 2024 18:01
cyip10 pushed a commit that referenced this pull request Jun 24, 2024
* Java: Added Missing Client Tests. (#127)

* Minor update.

* Refactored to unicode litterals.
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.

5 participants