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

Handling empty response TryReadStringArrayWithLengthHeader #1009

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Xizt
Copy link
Contributor

@Xizt Xizt commented Feb 10, 2025

fixes #1008

@prvyk
Copy link
Contributor

prvyk commented Feb 10, 2025

You can run "dotnet format" and commit the result to pass the formatter.

@Xizt
Copy link
Contributor Author

Xizt commented Feb 11, 2025

@prvyk Thanks, I've updated it. I created the PR by editing in github itself, not sure why the extra line crept up.

@vazois vazois self-requested a review February 11, 2025 19:33
@@ -354,6 +354,22 @@ public async Task CanUseSetNxStringResultAsync()
ClassicAssert.AreEqual("Hello", resultMykey);
}

[Test]
public async Task ShouldNotThrowExceptionForEmptyArrayResponse()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you resolve the warning here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kept the async pattern to match pattern in rest of the tests. Used async connection.

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.

GarnetClient threw 'System.IndexOutOfRangeException' when queried for CLUSTER SLOTS and no slots are assigned
3 participants