diff --git a/.github/workflows/run-test-suite.yml b/.github/workflows/run-test-suite.yml index b375cf06c..66ab0dde0 100644 --- a/.github/workflows/run-test-suite.yml +++ b/.github/workflows/run-test-suite.yml @@ -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' diff --git a/testing/README.md b/testing/README.md index 0adcecab2..ab125de16 100644 --- a/testing/README.md +++ b/testing/README.md @@ -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(); // ... @@ -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(); diff --git a/tests/.rr.yaml b/tests/.rr.yaml index 112c1ab3d..0048694bd 100644 --- a/tests/.rr.yaml +++ b/tests/.rr.yaml @@ -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 diff --git a/tests/Acceptance/.rr.yaml b/tests/Acceptance/.rr.yaml index 2271a06fc..13e4a9df0 100644 --- a/tests/Acceptance/.rr.yaml +++ b/tests/Acceptance/.rr.yaml @@ -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 @@ -18,4 +18,4 @@ kv: config: { } logs: - mode: none + mode: none #info diff --git a/tests/Functional/.rr.silent.yaml b/tests/Functional/.rr.silent.yaml index 5c8c91067..c8aa584fd 100644 --- a/tests/Functional/.rr.silent.yaml +++ b/tests/Functional/.rr.silent.yaml @@ -8,7 +8,7 @@ server: # Workflow and activity mesh service temporal: - address: "localhost:7233" + address: "127.0.0.1:7233" activities: num_workers: 1 diff --git a/tests/Functional/Client/AbstractClient.php b/tests/Functional/Client/AbstractClient.php index 6342207ed..6734159bd 100644 --- a/tests/Functional/Client/AbstractClient.php +++ b/tests/Functional/Client/AbstractClient.php @@ -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) diff --git a/tests/Functional/Client/TypedStubTestCase.php b/tests/Functional/Client/TypedStubTestCase.php index 13e3052c5..21abcc458 100644 --- a/tests/Functional/Client/TypedStubTestCase.php +++ b/tests/Functional/Client/TypedStubTestCase.php @@ -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, diff --git a/tests/Functional/HistoryLengthWorkflowTestCase.php b/tests/Functional/HistoryLengthWorkflowTestCase.php index c8a5b91db..153aa426c 100644 --- a/tests/Functional/HistoryLengthWorkflowTestCase.php +++ b/tests/Functional/HistoryLengthWorkflowTestCase.php @@ -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(); diff --git a/tests/Functional/Interceptor/AbstractClient.php b/tests/Functional/Interceptor/AbstractClient.php index 5853062b8..042a9eae7 100644 --- a/tests/Functional/Interceptor/AbstractClient.php +++ b/tests/Functional/Interceptor/AbstractClient.php @@ -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), diff --git a/tests/Functional/NamedArgumentsTestCase.php b/tests/Functional/NamedArgumentsTestCase.php index 9584b8616..0a5e40251 100644 --- a/tests/Functional/NamedArgumentsTestCase.php +++ b/tests/Functional/NamedArgumentsTestCase.php @@ -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(); diff --git a/tests/Functional/SimpleWorkflowTestCase.php b/tests/Functional/SimpleWorkflowTestCase.php index 19b6901f5..dfbeec033 100644 --- a/tests/Functional/SimpleWorkflowTestCase.php +++ b/tests/Functional/SimpleWorkflowTestCase.php @@ -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();