From 4ba87cc77aeb003ec1a7af4c2d25055c9c6d9db8 Mon Sep 17 00:00:00 2001 From: Danielle Lancashire Date: Thu, 19 Sep 2019 04:17:42 +0200 Subject: [PATCH] command: Improve metrics fail logging --- command/agent/metrics_endpoint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/metrics_endpoint_test.go b/command/agent/metrics_endpoint_test.go index d1c65d0cd8b..d97fe2e69ca 100644 --- a/command/agent/metrics_endpoint_test.go +++ b/command/agent/metrics_endpoint_test.go @@ -121,7 +121,7 @@ func TestHTTP_FreshClientAllocMetrics(t *testing.T) { terminal == float32(numTasks), nil }, func(err error) { require.Fail("timed out waiting for metrics to converge", - "pending: %v, running: %v, terminal: %v", pending, running, terminal) + "expected: (pending: 0, running: 0, terminal: %v), got: (pending: %v, running: %v, terminal: %v)", numTasks, pending, running, terminal) }) }) }