Skip to content

Commit

Permalink
fix: make mp3 flag test use async iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Aug 25, 2021
1 parent c84a174 commit 34c60fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ fmt:
lint: fmt
deno lint --ignore=target/

test: fmt lint
deno test tests/
test: fmt
deno run -A tests/mp3_flag.ts

clean:
rm -rf deno_sdl2
Expand Down
5 changes: 4 additions & 1 deletion tests/mp3_flag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ const canvas = new Canvas({

canvas.playMusic("tests/sample_0.mp3");

await canvas.start();
// Fire up the event loop
for await (const _ of canvas) {
continue;
}

0 comments on commit 34c60fc

Please sign in to comment.