From d0b5904b5ebe76f4f3b993403f13e08122bf0099 Mon Sep 17 00:00:00 2001 From: James Hugman Date: Mon, 16 Sep 2024 19:11:34 +0100 Subject: [PATCH] Simplify futures test --- fixtures/futures/tests/bindings/test_futures.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fixtures/futures/tests/bindings/test_futures.ts b/fixtures/futures/tests/bindings/test_futures.ts index 0b33d1b3..971bfa6a 100644 --- a/fixtures/futures/tests/bindings/test_futures.ts +++ b/fixtures/futures/tests/bindings/test_futures.ts @@ -138,11 +138,7 @@ function checkRemainingFutures(t: Asserts) { await asyncTest("Async methods", async (t) => { const megaphone = newMegaphone(); - let helloAlice = await t.asyncMeasure( - async () => megaphone.sayAfter(500, "Alice"), - 500, - 20, - ); + const helloAlice = await megaphone.sayAfter(500, "Alice"); t.assertEqual("HELLO, ALICE!", helloAlice); checkRemainingFutures(t); t.end();