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 6e03534 commit d0b5904
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 @@ -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();
Expand Down

0 comments on commit d0b5904

Please sign in to comment.