Skip to content

Commit

Permalink
Simplify futures test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhugman committed Sep 16, 2024
1 parent a402563 commit 49085d4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fixtures/futures/tests/bindings/test_futures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 49085d4

Please sign in to comment.