command: Improve metrics fail logging

This commit is contained in:
Danielle Lancashire 2019-09-19 04:17:42 +02:00
parent c9bcb7e76a
commit e81d113e3f
No known key found for this signature in database
GPG key ID: 8D65584EF3DDF91B

View file

@ -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)
})
})
}