@@ -92,6 +92,7 @@ public async Task LargeOrchestrationInputAndOutputAndCustomStatus()
9292 [ Fact ]
9393 public async Task LargeTerminateWithPayload ( )
9494 {
95+ string largeInput = new string ( 'I' , 900 * 1024 ) ;
9596 string largeOutput = new string ( 'T' , 900 * 1024 ) ;
9697 TaskName orch = nameof ( LargeTerminateWithPayload ) ;
9798
@@ -127,7 +128,7 @@ public async Task LargeTerminateWithPayload()
127128 client . Services . AddSingleton < IPayloadStore > ( store ) ;
128129 } ) ;
129130
130- string id = await server . Client . ScheduleNewOrchestrationInstanceAsync ( orch ) ;
131+ string id = await server . Client . ScheduleNewOrchestrationInstanceAsync ( orch , largeInput ) ;
131132 await server . Client . WaitForInstanceStartAsync ( id , this . TimeoutToken ) ;
132133
133134 await server . Client . TerminateInstanceAsync ( id , new TerminateInstanceOptions { Output = largeOutput } , this . TimeoutToken ) ;
@@ -299,10 +300,10 @@ public async Task LargeQueryFetchInputsAndOutputs()
299300 client . Services . AddSingleton < IPayloadStore > ( workerStore ) ;
300301 } ) ;
301302
302- string id = await server . Client . ScheduleNewOrchestrationInstanceAsync ( orch ) ;
303+ string id = await server . Client . ScheduleNewOrchestrationInstanceAsync ( orch , largeIn ) ;
303304 await server . Client . WaitForInstanceCompletionAsync ( id , getInputsAndOutputs : false , this . TimeoutToken ) ;
304305
305- var page = server . Client . GetAllInstancesAsync ( new OrchestrationQuery { FetchInputsAndOutputs = true } ) ;
306+ var page = server . Client . GetAllInstancesAsync ( new OrchestrationQuery { FetchInputsAndOutputs = true , InstanceIdPrefix = id } ) ;
306307 OrchestrationMetadata ? found = null ;
307308 await foreach ( var item in page )
308309 {
0 commit comments