Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set flush to true. #7459

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FileSystemDesktop implements FileIO {
if (contents is String) {
file.writeAsStringSync(contents, flush: true);
} else if (contents is Uint8List) {
file.writeAsBytesSync(contents);
file.writeAsBytesSync(contents, flush: true);
} else {
throw StateError('Unsupported content type: $T');
}
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_app/test_driver/integration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Future<void> main() async {
// Create the goldens directory if it does not exist.
Directory(_goldensDirectoryPath).createSync();
}
goldenFile.writeAsBytesSync(screenshotBytes);
goldenFile.writeAsBytesSync(screenshotBytes, flush: true);
print('Golden image updated: $screenshotName.png');
return true;
}
Expand Down
Loading