Skip to content

Commit b769cce

Browse files
committed
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 <estesp@linux.vnet.ibm.com>
1 parent 4540784 commit b769cce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

container_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func testContainerUser(t *testing.T, userstr, expectedOutput string) {
493493
var (
494494
image Image
495495
ctx, cancel = testContext()
496-
id = t.Name()
496+
id = strings.Replace(t.Name(), "/", "_", -1)
497497
)
498498
defer cancel()
499499

0 commit comments

Comments
 (0)