Skip to content

Commit af13def

Browse files
chore(dev): fix span duration in tests (#778)
1 parent eb409b4 commit af13def

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/rum-core/test/common/apm-server.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ describe('ApmServer', function() {
320320
const tr = new Transaction('test-meta-tr', 'test-type', {
321321
startTime: 10
322322
})
323-
tr.startSpan('test-meta-span', 'test-type')
323+
const sp = tr.startSpan('test-meta-span', 'test-type', { startTime: 0 })
324+
sp.end(50)
324325
tr.end(100)
325326
const payload = performanceMonitoring.createTransactionDataModel(tr)
326327
await apmServer.sendEvents([

0 commit comments

Comments
 (0)