File: 0003-Fix-flaky-TestNativeHistogram.patch

package info (click to toggle)
golang-github-prometheus-client-golang 1.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 3,192 kB
  • sloc: makefile: 68; ansic: 46; sh: 21
file content (24 lines) | stat: -rw-r--r-- 717 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Fri, 28 Jul 2023 03:31:51 +0800
Subject: Skip buggy TestNativeHistogram test on ppc64el

Bug: https://github.com/prometheus/client_golang/issues/1165
Last-Update: 2022-11-09
---
 prometheus/histogram_test.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/prometheus/histogram_test.go b/prometheus/histogram_test.go
index 1a19df2..25a8360 100644
--- a/prometheus/histogram_test.go
+++ b/prometheus/histogram_test.go
@@ -470,6 +470,9 @@ func TestHistogramExemplar(t *testing.T) {
 }
 
 func TestNativeHistogram(t *testing.T) {
+	if runtime.GOARCH == "ppc64le" {
+		t.Skip("Skipping buggy test on ppc64el")
+	}
 	now := time.Now()
 
 	scenarios := []struct {