fix: delay exiting microbenchmark (#176477)

Give the collecting process a chance to catch Done
This commit is contained in:
John "codefu" McDole 2025-10-03 12:20:09 -07:00 committed by GitHub
parent b3ecbb9034
commit bd81ae6f02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,5 +119,12 @@ Future<void> main() async {
}
print('\n\n╡ ••• Done ••• ╞\n\n');
// Ensure stdout buffers are flushed so the collecting process gets Done
await stdout.flush();
// Now we're just being paranoid here and letting the process churn through
// log lines before handling the exit code.
await Future<void>.delayed(const Duration(seconds: 5));
exit(0);
}