Skip to content

Commit cadb6af

Browse files
authored
Update version to 1.0.53 and fix warning in config test (#947)
* version bump * Fix warning with unused variable
1 parent 51ee0f0 commit cadb6af

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Version.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<!-- Versioning property for builds and packages -->
33
<PropertyGroup>
4-
<VersionPrefix>1.0.52</VersionPrefix>
4+
<VersionPrefix>1.0.53</VersionPrefix>
55
</PropertyGroup>
66
</Project>

test/Garnet.test.cluster/ClusterConfigTests.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void ClusterConfigInitializesUnassignedWorkerTest()
6565
public void ClusterForgetAfterNodeRestartTest()
6666
{
6767
int nbInstances = 4;
68-
context.CreateInstances(4);
68+
context.CreateInstances(nbInstances);
6969
context.CreateConnection();
7070
var (shards, slots) = context.clusterTestUtils.SimpleSetupCluster(logger: context.logger);
7171

@@ -77,7 +77,7 @@ public void ClusterForgetAfterNodeRestartTest()
7777

7878
var firstNode = context.nodes[0];
7979
var nodesResult = context.clusterTestUtils.ClusterNodes(0);
80-
Assert.That(nodesResult.Nodes.Count == 4);
80+
Assert.That(nodesResult.Nodes.Count == nbInstances);
8181

8282
try
8383
{
@@ -96,13 +96,13 @@ public void ClusterForgetAfterNodeRestartTest()
9696
}
9797

9898
nodesResult = context.clusterTestUtils.ClusterNodes(0);
99-
Assert.That(nodesResult.Nodes.Count == 4, "No node should've been removed from the cluster after an invalid id was passed.");
99+
Assert.That(nodesResult.Nodes.Count == nbInstances, "No node should've been removed from the cluster after an invalid id was passed.");
100100
Assert.That(nodesResult.Nodes.ElementAt(0).IsMyself);
101101
Assert.That(nodesResult.Nodes.ElementAt(0).EndPoint.ToIPEndPoint().Port == 7000, "Expected the node to be replying to be the one with port 7000.");
102102

103103
context.clusterTestUtils.ClusterForget(0, nodesResult.Nodes.Last().NodeId, 0);
104104
nodesResult = context.clusterTestUtils.ClusterNodes(0);
105-
Assert.That(nodesResult.Nodes.Count == 3, "A node should've been removed from the cluster.");
105+
Assert.That(nodesResult.Nodes.Count == nbInstances - 1, "A node should've been removed from the cluster.");
106106
Assert.That(nodesResult.Nodes.ElementAt(0).IsMyself);
107107
Assert.That(nodesResult.Nodes.ElementAt(0).EndPoint.ToIPEndPoint().Port == 7000, "Expected the node to be replying to be the one with port 7000.");
108108
}

0 commit comments

Comments
 (0)