From 4cd95589ec6f6386180234ba9955df0b83a05d81 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sun, 18 Aug 2024 17:02:32 -0400 Subject: [PATCH] fix: make `deno add` output more deterministic (#25083) Will fix some flaky tests. --- cli/tools/registry/pm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/tools/registry/pm.rs b/cli/tools/registry/pm.rs index 90238b8903..52f3310ba4 100644 --- a/cli/tools/registry/pm.rs +++ b/cli/tools/registry/pm.rs @@ -247,7 +247,7 @@ pub async fn add( .collect::>(); let stream_of_futures = deno_core::futures::stream::iter(package_futures); - let mut buffered = stream_of_futures.buffer_unordered(10); + let mut buffered = stream_of_futures.buffered(10); while let Some(package_and_version_result) = buffered.next().await { let package_and_version = package_and_version_result?;