Skip to content

Commit 40a4a4a

Browse files
tests: integration: prevent port binding failures in concurrent OTEL tests (#11808)
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
1 parent 049a774 commit 40a4a4a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/runtime/data/routing/otlp_comprehensive_routing_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pipeline:
22
inputs:
33
- name: opentelemetry
4-
port: 4318
4+
port: 4319
55
routes:
66
logs:
77
# Route 1: Match by resource attribute - service_name

tests/runtime/in_opentelemetry_routing.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
#include "../../plugins/in_opentelemetry/opentelemetry_logs.h"
3939

4040
#define JSON_CONTENT_TYPE "application/json"
41-
#define PORT_OTEL 4318
41+
/* Pick a port that is not in use by other tests as well */
42+
/* Ensure you update data/routing/otlp_comprehensive_routing_test.yaml */
43+
#define PORT_OTEL 4319
4244
#define V1_ENDPOINT_LOGS "/v1/logs"
4345
#define MAX_ROUTES 32
4446

0 commit comments

Comments
 (0)