Skip to content

Commit

Permalink
fixed test after prometheus client upgrade
Browse files Browse the repository at this point in the history
go_memstats_gc_cpu_fraction was removed from prometheus_client
  • Loading branch information
kbudde committed May 14, 2022
1 parent 31cd6e6 commit f7121be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ func TestWholeApp(t *testing.T) {
body := w.Body.String()
t.Log(body)
lines := strings.Split(body, "\n")
if lc := len(lines); lc != 372 {
t.Errorf("expected 372 lines, got %d", lc)
if lc := len(lines); lc != 369 {
t.Errorf("expected 369 lines, got %d", lc)
}
expectSubstring(t, body, `rabbitmq_up{cluster="my-rabbit@ae74c041248b",node="my-rabbit@ae74c041248b"} 1`)

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

0 comments on commit f7121be

Please sign in to comment.