Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit a3622d1

Browse files
authored
test: relax a property check in system tests (#1133)
1 parent d3f7d16 commit a3622d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system-test/trace-express.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ describe('express + datastore', () => {
144144
assert.ok(trace.spans.length >= 2, 'should be at least 2 spans: parent, child');
145145
const parent = trace.spans[0];
146146
const child = trace.spans.find(span => {
147-
const datastoreUrl = `https://datastore.googleapis.com/${EXPECTED_ENDPOINT}`;
147+
const urlLabelValue = span.labels[tracer.labels.HTTP_URL_LABEL_KEY];
148148
return span.name === `grpc:/${EXPECTED_ENDPOINT}` ||
149-
span.labels[tracer.labels.HTTP_URL_LABEL_KEY] === datastoreUrl;
149+
(urlLabelValue && urlLabelValue.endsWith(EXPECTED_ENDPOINT));
150150
});
151151

152152
assert.strictEqual(parent.name, testPath, 'should match unique path');

0 commit comments

Comments
 (0)