diff --git a/tests/general/worker_test.go b/tests/general/worker_test.go index 3bb42627..b0540059 100644 --- a/tests/general/worker_test.go +++ b/tests/general/worker_test.go @@ -39,13 +39,13 @@ func Test_ResetWorkerWorkflow(t *testing.T) { time.Sleep(time.Second) // Query the workflow to kill the worker - this should timeout - ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second) - _, err = s.Client.QueryWorkflow(ctx, w.GetID(), w.GetRunID(), "die", nil) + ctx, cancel := context.WithTimeout(context.Background(), 4 * time.Second) + _, err = s.Client.QueryWorkflow(ctx, w.GetID(), w.GetRunID(), "die", 1) cancel() // Should fail with a timeout since the worker dies during query execution require.Error(t, err) - + // Cancel the workflow ctx, cancel = context.WithTimeout(context.Background(), 5*time.Second) err = s.Client.CancelWorkflow(ctx, w.GetID(), w.GetRunID()) diff --git a/tests/php_test_files/composer.json b/tests/php_test_files/composer.json index 0368dd56..f5906937 100644 --- a/tests/php_test_files/composer.json +++ b/tests/php_test_files/composer.json @@ -2,27 +2,8 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "ext-curl": "*", - "guzzlehttp/guzzle": "^6.5", - "nyholm/psr7": "^1.5", - "spiral/roadrunner-http": "^3.0", - "spiral/roadrunner-worker": "^3.0", - "temporal/sdk": "^2.8.1", - "spiral/tokenizer": ">=2.7", - "spiral/roadrunner-metrics": "^3.0", - "spiral/roadrunner-grpc": "^3.0", - "spiral/roadrunner-tcp": "^3.0", - "spiral/roadrunner-jobs": "^4.0", - "monolog/monolog": "^3.1", - "php-http/guzzle6-adapter": "~2", - "spiral/goridge": "^4.0", - "roadrunner-php/centrifugo": "^2.0", - "roadrunner-php/app-logger": "^1.0", - "open-telemetry/sdk": "^0.0.10", - "psr/http-factory": "^1.0", - "php-http/message-factory": "^1.1", - "spiral/roadrunner-kv": "^4.0", - "spiral/roadrunner-services": "^2.0" + "temporal/sdk": "^2.15.1", + "spiral/roadrunner-kv": "^4.0" }, "name": "test/test", "autoload": { @@ -31,10 +12,5 @@ "Temporal\\Tests\\": "src" } }, - "description": "test", - "config": { - "allow-plugins": { - "php-http/discovery": true - } - } + "description": "test" }