diff --git a/hive/test/tests/frames.dart b/hive/test/tests/frames.dart
index ea407152..383395be 100644
--- a/hive/test/tests/frames.dart
+++ b/hive/test/tests/frames.dart
@@ -176,7 +176,7 @@ void expectFrames(Iterable f1, Iterable f2) {
}
}
-void buildGoldens() async {
+Future buildGoldens() async {
Future generate(
String fileName,
String varName,
@@ -218,6 +218,7 @@ void buildGoldens() async {
});
}
-void main() {
- buildGoldens();
+void main() async {
+ await buildGoldens();
+ Process.runSync('dart', ['format', '.']);
}