Always flush files when setting up the test directory. (#122856)

Always flush files when setting up the test directory.
This commit is contained in:
Jackson Gardner
2023-03-17 13:45:05 -07:00
committed by GitHub
parent 399cd6a56d
commit a88eb172b7

View File

@@ -45,7 +45,7 @@ void writeFile(String path, String content, {bool writeFutureModifiedDate = fals
void writeBytesFile(String path, List<int> content) {
fileSystem.file(path)
..createSync(recursive: true)
..writeAsBytesSync(content);
..writeAsBytesSync(content, flush: true);
}
void writePackages(String folder) {