Skip to content

Commit f7121be

Browse files
committed
fixed test after prometheus client upgrade
go_memstats_gc_cpu_fraction was removed from prometheus_client
1 parent 31cd6e6 commit f7121be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exporter_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func TestWholeApp(t *testing.T) {
8888
body := w.Body.String()
8989
t.Log(body)
9090
lines := strings.Split(body, "\n")
91-
if lc := len(lines); lc != 372 {
92-
t.Errorf("expected 372 lines, got %d", lc)
91+
if lc := len(lines); lc != 369 {
92+
t.Errorf("expected 369 lines, got %d", lc)
9393
}
9494
expectSubstring(t, body, `rabbitmq_up{cluster="my-rabbit@ae74c041248b",node="my-rabbit@ae74c041248b"} 1`)
9595

@@ -444,7 +444,7 @@ func TestExporter(t *testing.T) {
444444
`rabbitmq_queue_messages_ready{cluster="my-rabbit@ae74c041248b",durable="true",policy="ha-2",queue="myQueue2",self="1",vhost="/"} 25`,
445445
},
446446
dontExpect: []string{},
447-
lines: 401,
447+
lines: 398,
448448
},
449449
{
450450
name: "Include specific queue",

0 commit comments

Comments
 (0)