From e57cd8d2e76257cb77a9533a09225fc35dbc89bb Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Thu, 10 Nov 2016 16:35:57 +0000 Subject: [PATCH] Fix time-dependant test (stop testing docker client library) --- probe/docker/container_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/docker/container_test.go b/probe/docker/container_test.go index 7a15f78229..3b72700198 100644 --- a/probe/docker/container_test.go +++ b/probe/docker/container_test.go @@ -77,7 +77,7 @@ func TestContainer(t *testing.T) { "docker_label_foo1": "bar1", "docker_label_foo2": "bar2", "docker_container_state": "running", - "docker_container_state_human": "Up 6 years", + "docker_container_state_human": c.Container().State.String(), "docker_container_uptime": uptime.String(), }).WithLatestControls( controls,