File: 05-fix-flaky-TestSparseHistogram.patch

package info (click to toggle)
golang-github-prometheus-client-golang 1.14.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bookworm-proposed-updates
  • size: 1,532 kB
  • sloc: makefile: 15
file content (17 lines) | stat: -rw-r--r-- 575 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Skip buggy TestSparseHistogram test on ppc64el
Author: Daniel Swarbrick <dswarbrick@debian.org>
Bug: https://github.com/prometheus/client_golang/issues/1165
Last-Update: 2022-11-09
--- a/prometheus/histogram_test.go
+++ b/prometheus/histogram_test.go
@@ -472,6 +472,10 @@ func TestHistogramExemplar(t *testing.T)
 }
 
 func TestSparseHistogram(t *testing.T) {
+	if runtime.GOARCH == "ppc64le" {
+		t.Skip("Skipping buggy test on ppc64el")
+	}
+
 	scenarios := []struct {
 		name             string
 		observations     []float64 // With simulated interval of 1m.