Skip to content

Commit

Permalink
Version 0.10.0 (#194)
Browse files Browse the repository at this point in the history
* update version to 0.9.1

* Version0.10.0

* try fix flaky tests
  • Loading branch information
shacharPash committed Oct 19, 2023
1 parent aa6f6a4 commit 01e823c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
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

0 comments on commit 01e823c

Please sign in to comment.