From 465e5ecd5dd40c16b4b16bea168e520b087d42b2 Mon Sep 17 00:00:00 2001 From: Nanaloveyuki Date: Wed, 8 Jul 2026 11:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20fix=20async=20js=20shutdown=20test?= =?UTF-8?q?=20expectation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-async/BitLoggerAsync_test.mbt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src-async/BitLoggerAsync_test.mbt b/src-async/BitLoggerAsync_test.mbt index ff8289c..0f30749 100644 --- a/src-async/BitLoggerAsync_test.mbt +++ b/src-async/BitLoggerAsync_test.mbt @@ -1902,14 +1902,8 @@ async test "library async shutdown preserves wrapped failure cleanup semantics" inspect(full.last_error().contains("TestFlushError"), content="true") inspect(full.is_running(), content="false") inspect(writes.val, content="1") - inspect( - full.pending_count(), - content=if async_runtime_supports_background_worker() { "0" } else { "1" }, - ) - inspect( - full.dropped_count(), - content=if async_runtime_supports_background_worker() { "1" } else { "0" }, - ) + inspect(full.pending_count(), content="0") + inspect(full.dropped_count(), content="1") } ///|