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

Version 0.10.0 #194

Merged
merged 3 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/NRedisStack/NRedisStack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<Owners>Redis OSS</Owners>
<Description>.Net Client for Redis Stack</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>0.9.0</Version>
<ReleaseVersion>0.9.0</ReleaseVersion>
<PackageVersion>0.9.0</PackageVersion>
<Version>0.10.0</Version>
<ReleaseVersion>0.10.0</ReleaseVersion>
<PackageVersion>0.10.0</PackageVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 5 additions & 2 deletions tests/NRedisStack.Tests/PipelineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,15 @@ public void TestJsonPipeline()

string jsonPerson = JsonSerializer.Serialize(new Person { Name = "Shachar", Age = 23 });
_ = pipeline.Json.SetAsync("key", "$", jsonPerson);
// var setResponse = pipeline.Json.SetAsync("key", "$", jsonPerson);
var setResponse = pipeline.Json.SetAsync("key", "$", jsonPerson);
var getResponse = pipeline.Json.GetAsync("key");

pipeline.Execute();

// Assert.Equal("True", setResponse.Result.ToString());
setResponse.Wait();
getResponse.Wait();

Assert.True(setResponse.Result);
Assert.Equal("{\"Name\":\"Shachar\",\"Age\":23}", getResponse.Result.ToString());
}
}
5 changes: 4 additions & 1 deletion tests/NRedisStack.Tests/TransactionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ public void TestJsonTransaction()

transaction.Execute();

Assert.Equal("True", setResponse.Result.ToString());
setResponse.Wait();
getResponse.Wait();

Assert.True(setResponse.Result);
Assert.Equal("{\"Name\":\"Shachar\",\"Age\":23}", getResponse.Result.ToString());
}

Expand Down