File tree 1 file changed +4
-3
lines changed
tests/NRedisStack.Tests/Core Commands
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
using Xunit ;
2
2
using NRedisStack . Core ;
3
+ using StackExchange . Redis ;
3
4
4
5
namespace NRedisStack . Tests . Core ;
5
6
@@ -16,9 +17,9 @@ public void Dispose()
16
17
[ SkipIfRedisVersion ( Comparison . LessThan , "7.1.242" ) ]
17
18
public void TestSetInfo ( )
18
19
{
19
- var redis = redisFixture . Redis ;
20
-
20
+ var redis = ConnectionMultiplexer . Connect ( "localhost" ) ;
21
21
var db = redis . GetDatabase ( ) ;
22
+
22
23
db . Execute ( "FLUSHALL" ) ;
23
24
var info = db . Execute ( "CLIENT" , "INFO" ) . ToString ( ) ;
24
25
Assert . EndsWith ( "lib-name=SE.Redis lib-ver=2.6.122.38350\n " , info ) ;
@@ -32,7 +33,7 @@ public void TestSetInfo()
32
33
[ SkipIfRedisVersion ( Comparison . LessThan , "7.1.242" ) ]
33
34
public async Task TestSetInfoAsync ( )
34
35
{
35
- var redis = redisFixture . Redis ;
36
+ var redis = ConnectionMultiplexer . Connect ( "localhost" ) ;
36
37
37
38
var db = redis . GetDatabase ( ) ;
38
39
db . Execute ( "FLUSHALL" ) ;
You can’t perform that action at this time.
0 commit comments