prometheus/util
George Krajcsovits 21fb899c32
Some checks are pending
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
fix(teststorage/appender.go): TODO and Sample staleness check (#17905)
* fix(teststorage/appender.go): TODO and Sample staleness check

Allow different order of consecutive stale samples between the expected
and actual array for RequireEqual and RequireNotEqual by trying to
swap the expected side until it matches.

Also fix the definition of stale sample in the test, it's not only
float, but defined for native histograms as well.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

* add unit tests

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

---------

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2026-01-21 15:25:31 +00:00
..
almost Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
annotations Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
compression Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
convertnhcb Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
documentcli Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
features API: Add a /api/v1/features endpoint 2025-12-09 16:13:14 +01:00
fmtutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
fuzzing Merge pull request #17644 from prometheus/binop-fill-modifier 2026-01-19 20:05:52 +01:00
gate Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
httputil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
jsonutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
junitxml Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
logging Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
namevalidationutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
netconnlimit Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
notifications Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
osutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
pool Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
runtime Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
runutil Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
stats Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
strutil util: enhance test coverage for strutil package 2026-01-10 16:05:21 +05:30
teststorage fix(teststorage/appender.go): TODO and Sample staleness check (#17905) 2026-01-21 15:25:31 +00:00
testutil chore: remove testutil.T which is no longer needed since Go 1.13 (#17903) 2026-01-21 13:02:58 +00:00
treecache Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
zeropool Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00