Skip to content

Commit b1dc464

Browse files
authored
Improve e2e stability (#5715)
1 parent 22bc5ba commit b1dc464

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

e2e-tests/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"description": "End-to-end tests for OpenTelemetry JS",
55
"version": "0.0.0",
66
"scripts": {
7-
"test:e2e": "npm run run-collector && npm run export-telemetry && npm run verify && npm run stop-collector",
7+
"test:e2e": "npm run stop-collector; npm run run-collector && npm run export-telemetry && npm run verify || npm run stop-collector",
88
"lint": "eslint . --ext .mjs",
99
"lint:fix": "eslint . --ext .mjs --fix",
10-
"run-collector": "docker run -d --rm --name otelcol-e2e -v $(pwd)/collector-config.yaml:/etc/otelcol/config.yaml -v $(pwd)/collector-output.json:/tmp/collector-output.json -p 4317:4317 -p 4318:4318 -w /tmp otel/opentelemetry-collector-contrib:latest --config /etc/otelcol/config.yaml && sleep 5",
11-
"export-telemetry": "node test.mjs",
10+
"run-collector": "docker run --pull=always -d --rm --name otelcol-e2e -v $(pwd)/collector-config.yaml:/etc/otelcol/config.yaml -v $(pwd)/collector-output.json:/tmp/collector-output.json -p 4317:4317 -p 4318:4318 -w /tmp otel/opentelemetry-collector-contrib:latest --config /etc/otelcol/config.yaml && sleep 5",
11+
"export-telemetry": "node test.mjs; sleep 5",
1212
"prerun-collector": "node -e \"require('fs').writeFileSync('collector-output.json', '')\"",
1313
"stop-collector": "docker stop otelcol-e2e",
1414
"verify": "node verify.mjs"

0 commit comments

Comments
 (0)