From b769cce9042ea51c498af89fe69be5480f509b33 Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Wed, 4 Apr 2018 15:28:41 -0400 Subject: [PATCH] Fix tests using invalid ID These tests are using their name as ID, but subtests add a forward slash connected to the parent test, and slash (/) is an invalid character for container IDs. Signed-off-by: Phil Estes --- container_linux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container_linux_test.go b/container_linux_test.go index d479d47d4..f1bf853b7 100644 --- a/container_linux_test.go +++ b/container_linux_test.go @@ -493,7 +493,7 @@ func testContainerUser(t *testing.T, userstr, expectedOutput string) { var ( image Image ctx, cancel = testContext() - id = t.Name() + id = strings.Replace(t.Name(), "/", "_", -1) ) defer cancel()