mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Test: Make sure that max can't be lower than min (#34020)
This commit is contained in:
parent
abdceb18da
commit
64f31a8d6f
@ -141,6 +141,8 @@ export default chance.mixin({
|
||||
max: traceEndTime,
|
||||
});
|
||||
|
||||
const maxDuration = traceEndTime - startTime;
|
||||
|
||||
return {
|
||||
traceID,
|
||||
processID: chance.pickone(Object.keys(processes)),
|
||||
@ -149,7 +151,7 @@ export default chance.mixin({
|
||||
operationName: chance.pickone(operations),
|
||||
references: [],
|
||||
startTime,
|
||||
duration: chance.integer({ min: 1, max: traceEndTime - startTime }),
|
||||
duration: chance.integer({ min: 1, max: maxDuration <= 1 ? 2 : maxDuration }),
|
||||
tags: chance.tags(),
|
||||
logs: [],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user