File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ public function fetchResolvedResultAfterWorkflowCompleted(
3737
3838 $ this ->assertSame (['key ' => 'resolved ' ], (array )$ result , 'Workflow result contains resolved value ' );
3939 $ this ->assertFalse ($ handle ->hasResult ());
40- $ this ->assertFalse ($ resolver ->hasResult (), 'Resolver should not have result because of wait policy ' );
40+
41+ // Since Temporal CLI 1.2.0, the result is available immediately after the operation
42+ $ this ->assertTrue ($ resolver ->hasResult ());
43+ $ this ->assertSame ('resolved ' , $ resolver ->getResult ());
44+
4145 // Fetch result
4246 $ this ->assertSame ('resolved ' , $ handle ->getResult ());
4347 $ this ->assertTrue ($ handle ->hasResult ());
Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ public function updateHandlersWithOneCall(
3333
3434 $ this ->assertSame (['key ' => 'resolved ' ], (array ) $ result , 'Workflow result contains resolved value ' );
3535 $ this ->assertFalse ($ handle ->hasResult ());
36- $ this ->assertFalse ($ resolver ->hasResult (), 'Resolver should not have result because of wait policy ' );
36+
37+ // Since Temporal CLI 1.2.0, the result is available immediately after the operation
38+ $ this ->assertTrue ($ resolver ->hasResult ());
39+ $ this ->assertSame ('resolved ' , $ resolver ->getResult ());
40+
3741 // Fetch signal's result
3842 $ this ->assertSame ('resolved ' , $ handle ->getResult ());
3943 $ this ->assertTrue ($ handle ->hasResult ());
You can’t perform that action at this time.
0 commit comments