From 422bd950670c34067e4d37d9d3356cb8e1ff851e 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 c0155db4..9139fc2f 100644 --- a/fixtures/futures/tests/bindings/test_futures.ts +++ b/fixtures/futures/tests/bindings/test_futures.ts @@ -125,11 +125,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();