Skip to content

Commit 7e6d201

Browse files
committed
fixup
1 parent 2f5d65d commit 7e6d201

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

packages/core/src/test/shared/telemetry/spans.test.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,6 @@ describe('TelemetrySpan', function () {
7777
{ result: 'Succeeded', duration: 100 },
7878
])
7979
})
80-
81-
it('records performance', function () {
82-
const { expectedUserCpuUsage, expectedSystemCpuUsage, expectedHeapTotal } = stubPerformance(sandbox)
83-
const span = new TelemetrySpan('function_call', {
84-
emit: true,
85-
})
86-
span.start()
87-
clock.tick(90)
88-
span.stop()
89-
assertTelemetry('function_call', {
90-
userCpuUsage: expectedUserCpuUsage,
91-
systemCpuUsage: expectedSystemCpuUsage,
92-
heapTotal: expectedHeapTotal,
93-
duration: 90,
94-
result: 'Succeeded',
95-
})
96-
})
9780
})
9881

9982
describe('TelemetryTracer', function () {
@@ -269,28 +252,6 @@ describe('TelemetryTracer', function () {
269252
assert.match(metric.requestId ?? '', /[a-z0-9-]+/)
270253
})
271254

272-
it('records performance', function () {
273-
clock = installFakeClock()
274-
const { expectedUserCpuUsage, expectedSystemCpuUsage, expectedHeapTotal } = stubPerformance(sandbox)
275-
tracer.run(
276-
'function_call',
277-
() => {
278-
clock?.tick(90)
279-
},
280-
{
281-
emit: true,
282-
}
283-
)
284-
285-
assertTelemetry('function_call', {
286-
userCpuUsage: expectedUserCpuUsage,
287-
systemCpuUsage: expectedSystemCpuUsage,
288-
heapTotal: expectedHeapTotal,
289-
duration: 90,
290-
result: 'Succeeded',
291-
})
292-
})
293-
294255
describe('nested run()', function () {
295256
let uuidStub: sinon.SinonStub
296257
const nestedName = 'nested_metric' as MetricName

0 commit comments

Comments
 (0)