Skip to content

Commit bb89ea8

Browse files
committed
delete changes
1 parent 39f7a41 commit bb89ea8

File tree

2 files changed

+0
-74
lines changed

2 files changed

+0
-74
lines changed

src/NRedisStack/Pipeline.cs

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/NRedisStack.Tests/Json/JsonTests.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,6 @@ public void Dispose()
2020
redisFixture.Redis.GetDatabase().KeyDelete(_testName);
2121
}
2222

23-
[Fact]
24-
public void TestPipeline()
25-
{
26-
var conn = redisFixture.Redis;
27-
var db = conn.GetDatabase();
28-
IJsonCommands json = new JsonCommands(db);
29-
var keys = CreateKeyNames(1);
30-
var pipeline = new Pipeline(db);
31-
pipeline.AddCommand(json.Set(keys[0], "$", new Person { Name = "Shachar", Age = 23 }));
32-
pipeline.AddCommand(json.Get(keys[0]));
33-
pipeline.AddCommand(json.Set(keys[0], "$.Name", "Shachar2"));
34-
pipeline.AddCommand(json.Get(keys[0]));
35-
pipeline.AddCommand(json.Set(keys[0], "$.Age", 24));
36-
pipeline.AddCommand(json.Get(keys[0]));
37-
var results = pipeline.Execute();
38-
Assert.Equal(6, results.Length);
39-
Assert.Equal("OK", results[0].ToString());
40-
Assert.Equal("{\"Name\":\"Shachar\",\"Age\":23}", results[1].ToString());
41-
Assert.Equal("OK", results[2].ToString());
42-
Assert.Equal("{\"Name\":\"Shachar2\",\"Age\":23}", results[3].ToString());
43-
Assert.Equal("OK", results[4].ToString());
44-
Assert.Equal("{\"Name\":\"Shachar2\",\"Age\":24}", results[5].ToString());
45-
}
46-
4723
[Fact]
4824
public void TestSetFromFile()
4925
{

0 commit comments

Comments
 (0)