Skip to content

Commit 7ba27e6

Browse files
DOC-4560 added testable trans/pipe examples
1 parent b042f8b commit 7ba27e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Doc/PipeTransExample.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using StackExchange.Redis;
44
//REMOVE_START
55
using NRedisStack.Tests;
6-
using System.Threading.Tasks;
76

87
namespace Doc;
98
[Collection("DocsTests")]
@@ -38,8 +37,9 @@ public async Task run()
3837

3938
// STEP_START basic_pipe
4039
var pipeline = new Pipeline(db);
41-
42-
for (int i = 0; i < 5; i++) {
40+
41+
for (int i = 0; i < 5; i++)
42+
{
4343
pipeline.Db.StringSetAsync($"seat:{i}", $"#{i}");
4444
}
4545
pipeline.Execute();
@@ -82,7 +82,7 @@ public async Task run()
8282
Assert.Equal("2", resp5);
8383
Assert.Equal("3", resp6);
8484
// REMOVE_END
85-
85+
8686
// STEP_START trans_watch
8787
var watchedTrans = new Transaction(db);
8888

0 commit comments

Comments
 (0)