Skip to content

Commit 162e731

Browse files
committed
fix tests
1 parent a80c251 commit 162e731

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/NRedisStack.Tests/ClientInfoTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public void TestMultiplexerInfoOnReconnect()
2323
var db = GetCleanDatabase();
2424
db.Multiplexer.ConnectionRestored += (sender, e) => reconnected = true;
2525
Assert.Contains("lib-name=SE.Redis", db.Execute("CLIENT", "INFO").ToString());
26+
Auxiliary.ResetInfoDefaults();
2627
db.FT()._List();
2728
Assert.Contains("lib-name=NRedisStack", db.Execute("CLIENT", "INFO").ToString());
2829

tests/NRedisStack.Tests/Core Commands/CoreTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void TestSetInfoDefaultValue(string endpointId)
5151
db.Execute(new SerializedCommand("PING")); // only the extension method of Execute (which is used for all the commands of Redis Stack) will set the library name and version.
5252

5353
var info = db.Execute("CLIENT", "INFO").ToString();
54-
Assert.Contains($"lib-name=NRedisStack(.NET_v{Environment.Version}) lib-ver={GetNRedisStackVersion()}", info);
54+
Assert.Contains($"lib-name=NRedisStack-{GetNRedisStackVersion()} lib-ver={GetNRedisStackVersion()}", info);
5555
}
5656

5757
[SkipIfRedis(Is.Enterprise, Comparison.LessThan, "7.1.242")]
@@ -64,7 +64,7 @@ public async Task TestSetInfoDefaultValueAsync(string endpointId)
6464
await db.ExecuteAsync(new SerializedCommand("PING")); // only the extension method of Execute (which is used for all the commands of Redis Stack) will set the library name and version.
6565

6666
var info = (await db.ExecuteAsync("CLIENT", "INFO")).ToString();
67-
Assert.Contains($"lib-name=NRedisStack(.NET_v{Environment.Version}) lib-ver={GetNRedisStackVersion()}", info);
67+
Assert.Contains($"lib-name=NRedisStack-{GetNRedisStackVersion()} lib-ver={GetNRedisStackVersion()}", info);
6868
}
6969

7070
[SkipIfRedis(Is.Enterprise, Comparison.LessThan, "7.1.242")]

0 commit comments

Comments
 (0)