From 613d8bb8eadbb519ba9de8ced99c3ecee56aacff Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Tue, 5 Feb 2019 10:55:27 -0500 Subject: [PATCH] Fix multiple subpaths e2e: read/write in same container --- test/e2e/storage/testsuites/subpath.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/storage/testsuites/subpath.go b/test/e2e/storage/testsuites/subpath.go index 1ddc967a74c..3e35e2ecda2 100644 --- a/test/e2e/storage/testsuites/subpath.go +++ b/test/e2e/storage/testsuites/subpath.go @@ -291,7 +291,8 @@ func testSubPath(input *subPathTestInput) { SubPath: "subpath2", }) - addMultipleWrites(&input.pod.Spec.InitContainers[1], filepath1, filepath2) + // Write the files from container 0 and instantly read them back + addMultipleWrites(&input.pod.Spec.Containers[0], filepath1, filepath2) testMultipleReads(input.f, input.pod, 0, filepath1, filepath2) })