Skip to content

Commit 1ef4e89

Browse files
wu-shengclaude
andcommitted
fix: use notEmpty for endpointnames in traces-list expected data
The endpointnames value is non-deterministic — different E2E test configurations produce different entry endpoints (/artist-consumer in gRPC tests, /artist-provider in profiling tests). Use notEmpty check instead of hardcoding either endpoint name. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a2173cb commit 1ef4e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/case/expected/traces-list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ traces:
1919
- segmentid: {{ notEmpty .segmentid }}
2020
endpointnames:
2121
{{- contains .endpointnames }}
22-
- /artist-consumer
22+
- {{ regexp (index .endpointnames 0) "/artist-(consumer|provider)" }}
2323
{{- end }}
2424
duration: {{ ge .duration 0 }}
2525
start: {{ notEmpty .start}}

0 commit comments

Comments
 (0)