Merge pull request #6349 from hashicorp/b-host-stats

client: Return empty values when host stats fail
This commit is contained in:
Preetha
2019-11-20 10:13:02 -06:00
committed by GitHub
4 changed files with 23 additions and 15 deletions

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