Skip to content

Commit

Permalink
Sync tests behavior with Temporal CLI 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jan 13, 2025
1 parent 316bb04 commit 609fad4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/Acceptance/Extra/Update/UntypedStubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public function fetchResolvedResultAfterWorkflowCompleted(

$this->assertSame(['key' => 'resolved'], (array)$result, 'Workflow result contains resolved value');
$this->assertFalse($handle->hasResult());
$this->assertFalse($resolver->hasResult(), 'Resolver should not have result because of wait policy');

// Since Temporal CLI 1.2.0, the result is available immediately after the operation
$this->assertTrue($resolver->hasResult());
$this->assertSame('resolved', $resolver->getResult());

// Fetch result
$this->assertSame('resolved', $handle->getResult());
$this->assertTrue($handle->hasResult());
Expand Down
6 changes: 5 additions & 1 deletion tests/Acceptance/Extra/Workflow/AllHandlersFinishedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public function updateHandlersWithOneCall(

$this->assertSame(['key' => 'resolved'], (array) $result, 'Workflow result contains resolved value');
$this->assertFalse($handle->hasResult());
$this->assertFalse($resolver->hasResult(), 'Resolver should not have result because of wait policy');

// Since Temporal CLI 1.2.0, the result is available immediately after the operation
$this->assertTrue($resolver->hasResult());
$this->assertSame('resolved', $resolver->getResult());

// Fetch signal's result
$this->assertSame('resolved', $handle->getResult());
$this->assertTrue($handle->hasResult());
Expand Down

0 comments on commit 609fad4

Please sign in to comment.