File: 0003-Fix-prometheus.TestSetGauge-test.patch

package info (click to toggle)
golang-github-armon-go-metrics 0.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 368 kB
  • sloc: makefile: 2
file content (31 lines) | stat: -rw-r--r-- 860 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
25
26
27
28
29
30
31
From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Wed, 5 Jul 2023 15:35:32 +0200
Subject: Fix prometheus.TestSetGauge test

Forwarded: not-needed
Last-Update: 2023-06-22
---
 prometheus/prometheus_test.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/prometheus/prometheus_test.go b/prometheus/prometheus_test.go
index 6190874..2e5bd33 100644
--- a/prometheus/prometheus_test.go
+++ b/prometheus/prometheus_test.go
@@ -7,7 +7,6 @@ import (
 	"net/http"
 	"net/http/httptest"
 	"net/url"
-	"reflect"
 	"strings"
 	"testing"
 	"time"
@@ -264,7 +263,7 @@ func fakeServer(q chan string) *httptest.Server {
 				},
 			},
 		}
-		if !reflect.DeepEqual(m, expectedm) {
+		if !proto.Equal(m, expectedm) {
 			msg := fmt.Sprintf("Unexpected samples extracted, got: %+v, want: %+v", m, expectedm)
 			q <- errors.New(msg).Error()
 		} else {