mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: Fix flaky test (#74169)
This commit is contained in:
parent
f52936a604
commit
3ccfa5620f
@ -140,14 +140,16 @@ function attachReferences(spans: TraceSpanData[], depth: number, spansPerLevel:
|
|||||||
|
|
||||||
export default chance.mixin({
|
export default chance.mixin({
|
||||||
trace({
|
trace({
|
||||||
// long trace
|
numberOfSpans = Math.max(
|
||||||
// very short trace
|
Math.ceil(
|
||||||
// average case
|
chance.pickone([
|
||||||
numberOfSpans = chance.pickone([
|
chance.normal({ mean: 200, dev: 10 }), // long trace
|
||||||
Math.ceil(chance.normal({ mean: 200, dev: 10 })) + 1,
|
chance.integer({ min: 3, max: 10 }), // very short trace
|
||||||
Math.ceil(chance.integer({ min: 3, max: 10 })),
|
chance.normal({ mean: 45, dev: 15 }), // average case
|
||||||
Math.ceil(chance.normal({ mean: 45, dev: 15 })) + 1,
|
])
|
||||||
]),
|
),
|
||||||
|
1 // `pickone` might pick a negative number (or zero) from one of the normal distributions, but we need to have at least one span
|
||||||
|
),
|
||||||
numberOfProcesses = chance.integer({ min: 1, max: 10 }),
|
numberOfProcesses = chance.integer({ min: 1, max: 10 }),
|
||||||
maxDepth = chance.integer({ min: 1, max: 10 }),
|
maxDepth = chance.integer({ min: 1, max: 10 }),
|
||||||
spansPerLevel = null,
|
spansPerLevel = null,
|
||||||
|
Loading…
Reference in New Issue
Block a user