Fix a race in file I/O done by a BuildRunner test (flutter/engine#54167)

This test failure had been seen in some recent auto-roller jobs on CI.
This commit is contained in:
Jason Simmons
2024-07-27 17:57:26 -07:00
committed by GitHub
parent 498a31a6da
commit 0465c1d35a

View File

@@ -834,7 +834,7 @@ void main() {
..createSync(recursive: true);
final io.File file =
io.File(path.join(hostDebug.path, 'compile_commands.json'));
file.writeAsString(
file.writeAsStringSync(
r'''
[
{