mirror of https://github.com/grafana/loki
marshal tests: make random quantities more obvious (#9612)
**What this PR does / why we need it**:
Computing a new random number on every iteration of the loop is hard to
reason about, and probably not what was meant.
This PR will mean that much more data is generated than before; I
computed the expected value before as 11.2, whereas now it is 49.5.
Consider reducing the `100` if that is undesired.
**Checklist**
- NA Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- NA Documentation added
- [x] Tests updated
- NA `CHANGELOG.md` updated
- NA Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
- NA For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e3ec
)
pull/9569/head^2
parent
a21842d740
commit
f5872ec4d3
Loading…
Reference in new issue