Skip to content

Commit 10b22f9

Browse files
authored
test: clarify intended span processor unit test behaviour (#7781)
1 parent b83b0c9 commit 10b22f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/dd-trace/test/span_processor.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,14 @@ describe('SpanProcessor', () => {
9393
assert.deepStrictEqual(finishedSpan.context()._tags, {})
9494
})
9595

96-
it('should skip traces with unfinished spans', () => {
96+
it('should not flush a partial trace below the flushMinSpans threshold', () => {
9797
trace.started = [activeSpan, finishedSpan]
9898
trace.finished = [finishedSpan]
9999
processor.process(finishedSpan)
100100

101101
sinon.assert.notCalled(exporter.export)
102+
assert.deepStrictEqual(trace.started, [activeSpan, finishedSpan])
103+
assert.deepStrictEqual(trace.finished, [finishedSpan])
102104
})
103105

104106
it('should skip unrecorded traces', () => {

0 commit comments

Comments
 (0)