diff --git a/docker-compose.w3cTraceContext.yaml b/docker-compose.w3cTraceContext.yaml index b3f5615a1..b17c6917d 100644 --- a/docker-compose.w3cTraceContext.yaml +++ b/docker-compose.w3cTraceContext.yaml @@ -1,6 +1,7 @@ version: '3.7' services: php: + user: root build: context: . dockerfile: docker/Dockerfile diff --git a/tests/TraceContext/W3CTestService/symfony-setup b/tests/TraceContext/W3CTestService/symfony-setup old mode 100644 new mode 100755 index 89dc2dc09..20dd52a61 --- a/tests/TraceContext/W3CTestService/symfony-setup +++ b/tests/TraceContext/W3CTestService/symfony-setup @@ -1,4 +1,7 @@ #!/usr/bin/env bash +set -x + +git config --global user.email "otel@open-telemetry.example.com" # Install Symfony curl -sS https://get.symfony.com/cli/installer | bash @@ -21,16 +24,18 @@ composer require open-telemetry/opentelemetry "*" composer config repositories.local \ '{"type": "path", "url": "/usr/src/open-telemetry/", "options": {"symLink": true }}' \ --file composer.json +composer config minimum-stability dev --file composer.json +composer require php-http/mock-client "*" +composer require nyholm/psr7 "*" rm composer.lock composer clearcache composer install # Start the server to start listening in the background -symfony server:start -d --port=8001 +symfony server:start -d --port=8001 --no-tls # Setup the TraceContext Test Service -apt-get install -y python3-pip -pip3 install aiohttp +apk add --no-cache py3-pip py3-aiohttp cd .. rm -rf trace-context diff --git a/tests/Unit/API/Trace/NonRecordingSpanTest.php b/tests/Unit/API/Trace/NonRecordingSpanTest.php index 57a86eb71..9b4a69a94 100644 --- a/tests/Unit/API/Trace/NonRecordingSpanTest.php +++ b/tests/Unit/API/Trace/NonRecordingSpanTest.php @@ -88,10 +88,8 @@ public function test_set_status(): void public function test_end(): void { - $this->assertNull( - // @phpstan-ignore-next-line - $this->createNonRecordingSpan()->end() - ); + // @phpstan-ignore-next-line + $this->assertNull($this->createNonRecordingSpan()->end()); } private function createNonRecordingSpan(): NonRecordingSpan