From f1bec54758e6a1c253d275d1ae000903216a400d Mon Sep 17 00:00:00 2001 From: Peter Jausovec Date: Fri, 2 Nov 2018 09:46:03 -0700 Subject: [PATCH] Update the ExampleRegister test Signed-off-by: Peter Jausovec --- prometheus/examples_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/examples_test.go b/prometheus/examples_test.go index 538a239..a382479 100644 --- a/prometheus/examples_test.go +++ b/prometheus/examples_test.go @@ -282,7 +282,7 @@ func ExampleRegister() { // taskCounter unregistered. // taskCounterVec not registered: a previously registered descriptor with the same fully-qualified name as Desc{fqName: "worker_pool_completed_tasks_total", help: "Total number of tasks completed.", constLabels: {}, variableLabels: [worker_id]} has different label names or a different help string // taskCounterVec registered. - // Worker initialization failed: inconsistent label cardinality + // Worker initialization failed: inconsistent label cardinality: expected 1 label values but got 2 in []string{"42", "spurious arg"} // notMyCounter is nil. // taskCounterForWorker42 registered. // taskCounterForWorker2001 registered.