Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/run-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:

- name: Run tests
run: ${{ inputs.test-command }}
env:
XDEBUG_MODE: off

- name: Check for failures
if: steps.validate.outcome == 'failure'
Expand Down
4 changes: 2 additions & 2 deletions testing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ workflow has a timer, the server doesn't wait for it and continues immediately.
this behaviour you can use `TestService` class:

```php
$testService = TestService::create('localhost:7233');
$testService = TestService::create('127.0.0.1:7233');
$testService->lockTimeSkipping();

// ...
Expand Down Expand Up @@ -217,7 +217,7 @@ final class SimpleWorkflowTestCase extends TestCase

protected function setUp(): void
{
$this->workflowClient = new WorkflowClient(ServiceClient::create('localhost:7233'));
$this->workflowClient = new WorkflowClient(ServiceClient::create('127.0.0.1:7233'));
$this->activityMocks = new ActivityMocker();

parent::setUp();
Expand Down
2 changes: 1 addition & 1 deletion tests/.rr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server:

# Workflow and activity mesh service
temporal:
address: "localhost:7233"
address: "127.0.0.1:7233"
activities:
num_workers: 4
debug_level: 2
Expand Down
4 changes: 2 additions & 2 deletions tests/Acceptance/.rr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ server:

# Workflow and activity mesh service
temporal:
address: ${TEMPORAL_ADDRESS:-localhost:7233}
address: ${TEMPORAL_ADDRESS:-127.0.0.1:7233}
namespace: ${TEMPORAL_NAMESPACE:-default}
activities:
num_workers: 2
Expand All @@ -18,4 +18,4 @@ kv:
config: { }

logs:
mode: none
mode: none #info
2 changes: 1 addition & 1 deletion tests/Functional/.rr.silent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server:

# Workflow and activity mesh service
temporal:
address: "localhost:7233"
address: "127.0.0.1:7233"
activities:
num_workers: 1

Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/Client/AbstractClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class AbstractClient extends AbstractFunctional
* @param string $connection
* @return WorkflowClient
*/
protected function createClient(string $connection = 'localhost:7233'): WorkflowClient
protected function createClient(string $connection = '127.0.0.1:7233'): WorkflowClient
{
return new WorkflowClient(
ServiceClient::create($connection)
Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/Client/TypedStubTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ public function testGetDTOResult()

public function testVoidReturnType()
{
$w = $this->createClient();
$dto = $w->newWorkflowStub(ActivityReturnTypeWorkflow::class);
$client = $this->createClient();
$dto = $client->newWorkflowStub(ActivityReturnTypeWorkflow::class);

$this->assertEquals(
100,
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/HistoryLengthWorkflowTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class HistoryLengthWorkflowTestCase extends TestCase
protected function setUp(): void
{
$this->workflowClient = new WorkflowClient(
ServiceClient::create('localhost:7233')
ServiceClient::create('127.0.0.1:7233')
);
$this->activityMocks = new ActivityMocker();

Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/Interceptor/AbstractClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class AbstractClient extends AbstractFunctional
* @param string $connection
* @return WorkflowClient
*/
protected function createClient(string $connection = 'localhost:7233'): WorkflowClient
protected function createClient(string $connection = '127.0.0.1:7233'): WorkflowClient
{
return new WorkflowClient(
ServiceClient::create($connection),
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/NamedArgumentsTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class NamedArgumentsTestCase extends TestCase
protected function setUp(): void
{
$this->workflowClient = new WorkflowClient(
ServiceClient::create('localhost:7233')
ServiceClient::create('127.0.0.1:7233')
);

parent::setUp();
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/SimpleWorkflowTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function testWorkflowMethodInAbstractParent(): void
protected function setUp(): void
{
$this->workflowClient = new WorkflowClient(
ServiceClient::create('localhost:7233'),
ServiceClient::create('127.0.0.1:7233'),
);
$this->activityMocks = new ActivityMocker();

Expand Down
Loading