From bd81ae6f02668e28846d964ed86cb22b4c3ded1e Mon Sep 17 00:00:00 2001 From: "John \"codefu\" McDole" Date: Fri, 3 Oct 2025 12:20:09 -0700 Subject: [PATCH] fix: delay exiting microbenchmark (#176477) Give the collecting process a chance to catch Done --- .../microbenchmarks/lib/benchmark_collection.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart b/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart index b749306385e..ecca22fa0d3 100644 --- a/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart +++ b/dev/benchmarks/microbenchmarks/lib/benchmark_collection.dart @@ -119,5 +119,12 @@ Future 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.delayed(const Duration(seconds: 5)); exit(0); }