diff --git a/test/e2e/framework/volume/fixtures.go b/test/e2e/framework/volume/fixtures.go index cff195e6a92..c23e78c91c6 100644 --- a/test/e2e/framework/volume/fixtures.go +++ b/test/e2e/framework/volume/fixtures.go @@ -663,7 +663,7 @@ func InjectContent(f *framework.Framework, config TestConfig, fsGroup *int64, fs // generateWriteCmd is used by generateWriteBlockCmd and generateWriteFileCmd func generateWriteCmd(content, path string) []string { var commands []string - commands = []string{"/bin/sh", "-c", "echo '" + content + "' > " + path} + commands = []string{"/bin/sh", "-c", "echo '" + content + "' > " + path + "; sync"} return commands }