File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ public class Pipeline
6
6
{
7
7
public Pipeline ( IDatabase db )
8
8
{
9
+ db . SetInfoInPipeline ( ) ;
9
10
_batch = db . CreateBatch ( ) ;
10
11
}
11
12
Original file line number Diff line number Diff line change @@ -157,4 +157,22 @@ public void TestJsonPipeline()
157
157
Assert . True ( setResponse . Result ) ;
158
158
Assert . Equal ( "{\" Name\" :\" Shachar\" ,\" Age\" :23}" , getResponse . Result . ToString ( ) ) ;
159
159
}
160
+
161
+ [ SkippableTheory ]
162
+ [ MemberData ( nameof ( EndpointsFixture . Env . StandaloneOnly ) , MemberType = typeof ( EndpointsFixture . Env ) ) ]
163
+ [ Obsolete ]
164
+ public async void Issue401_TestPipelineAsInitialCommand ( string endpointId )
165
+ {
166
+ IDatabase db = GetCleanDatabase ( endpointId ) ;
167
+
168
+ Auxiliary . ResetInfoDefaults ( ) ; // demonstrate first connection
169
+ var pipeline = new Pipeline ( db ) ;
170
+
171
+ var setTask = pipeline . Json . SetAsync ( "json-key" , "$" , "{}" ) ;
172
+ _ = pipeline . Db . KeyExpireAsync ( key , TimeSpan . FromSeconds ( 10 ) ) ;
173
+
174
+ pipeline . Execute ( ) ;
175
+
176
+ Assert . True ( await setTask ) ;
177
+ }
160
178
}
You can’t perform that action at this time.
0 commit comments