Skip to content

Commit 609fad4

Browse files
committed
Sync tests behavior with Temporal CLI 1.2.0
1 parent 316bb04 commit 609fad4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tests/Acceptance/Extra/Update/UntypedStubTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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());

tests/Acceptance/Extra/Workflow/AllHandlersFinishedTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)