Skip to content

Commit 6e5e6e9

Browse files
committed
test: resolved
1 parent 3c97c5c commit 6e5e6e9

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

packages/collector/test/tracing/frameworks/got/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mochaSuiteFn('tracing/got', function () {
7070
extraTests: [
7171
span => {
7272
expect(span.data.http.method).to.equal('GET');
73-
expect(span.data.http.url).to.equal(`http://127.0.0.1:${agentControls.agentPort}/`);
73+
expect(span.data.http.url).to.equal(`http://127.0.0.1:${agentControls.agentPort}/ping`);
7474
expect(span.data.http.status).to.equal(200);
7575
}
7676
]

packages/collector/test/tracing/misc/node-fetch/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ mochaSuiteFn('tracing/node-fetch', function () {
7070
extraTests: [
7171
span => {
7272
expect(span.data.http.method).to.equal('GET');
73-
expect(span.data.http.url).to.equal(`http://127.0.0.1:${agentControls.agentPort}/`);
73+
expect(span.data.http.url).to.equal(`http://127.0.0.1:${agentControls.agentPort}/ping`);
7474
expect(span.data.http.status).to.equal(200);
7575
}
7676
]

packages/collector/test/tracing/protocols/http/client/test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ mochaSuiteFn('tracing/http client', function () {
306306
span.n === 'node.http.client' &&
307307
span.k === 2 &&
308308
span.data.http.method === 'GET' &&
309-
span.data.http.url === `http://127.0.0.1:${globalAgent.instance.agentPort}/`
309+
span.data.http.url === `http://127.0.0.1:${globalAgent.instance.agentPort}/ping`
310310
);
311311

312312
expect(spans).to.have.length(1);
@@ -328,7 +328,7 @@ mochaSuiteFn('tracing/http client', function () {
328328
http: [
329329
{
330330
methods: ['get'],
331-
endpoints: [`http://127.0.0.1:${customAgentControls.agentPort}/`]
331+
endpoints: [`http://127.0.0.1:${customAgentControls.agentPort}/ping`]
332332
}
333333
]
334334
}
@@ -371,7 +371,7 @@ mochaSuiteFn('tracing/http client', function () {
371371
span.n === 'node.http.client' &&
372372
span.k === 2 &&
373373
span.data.http.method === 'GET' &&
374-
span.data.http.url === `http://127.0.0.1:${customAgentControls.agentPort}/`
374+
span.data.http.url === `http://127.0.0.1:${customAgentControls.agentPort}/ping`
375375
);
376376

377377
expect(spans).to.have.length(2);
@@ -499,14 +499,14 @@ function registerTests(appUsesHttps) {
499499
verifyHttpExit({
500500
spans,
501501
parent: entryInClient,
502-
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/`,
502+
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/ping`,
503503
params: 'k=1'
504504
});
505505

506506
verifyHttpExit({
507507
spans,
508508
parent: entryInClient,
509-
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/`,
509+
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/ping`,
510510
params: 'k=2'
511511
});
512512
});
@@ -1211,7 +1211,7 @@ function verifySuperagentSpans(spans, clientEndpoint, serverEndpoint, clientCont
12111211
method: 'GET',
12121212
status: serverEndpoint === '/does-not-exist' ? 404 : 200
12131213
});
1214-
verifyHttpExit({ spans, parent: entryInClient, url: `http://127.0.0.1:${globalAgent.instance.agentPort}/` });
1214+
verifyHttpExit({ spans, parent: entryInClient, url: `http://127.0.0.1:${globalAgent.instance.agentPort}/ping` });
12151215
verifyHttpEntry({
12161216
spans,
12171217
parent: firstExitInClient,

packages/collector/test/tracing/protocols/http/native_fetch/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ mochaSuiteFn('tracing/native fetch', function () {
8484
verifyHttpExit({
8585
spans,
8686
parent: entryInClient,
87-
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/`,
87+
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/ping`,
8888
params: 'k=1'
8989
});
9090

9191
verifyHttpExit({
9292
spans,
9393
parent: entryInClient,
94-
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/`,
94+
url: `http://127.0.0.1:${globalAgent.instance.agentPort}/ping`,
9595
params: 'k=2'
9696
});
9797
});

0 commit comments

Comments
 (0)