From 34f078d7f48b4f521e6b009cf9e8562c5ac7c11c Mon Sep 17 00:00:00 2001 From: Mauricio Poppe Date: Mon, 9 May 2022 21:10:33 +0000 Subject: [PATCH] Use sync in provisioning tests --- test/e2e/framework/volume/fixtures.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }