Skip to content

Commit

Permalink
test: use isSupported() to wait for all memoized values
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Sep 20, 2024
1 parent 0786e35 commit 167d4ea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/memory/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ describe('module', () => {
await page.evaluate(async () => {
new GainNode(audioContext); // eslint-disable-line no-undef

await new Promise((resolve) => {
setTimeout(resolve, 1000);
});
await isSupported(); // eslint-disable-line no-undef
});

await page.evaluate(() => gc()); // eslint-disable-line no-undef
});

describe('with unconnected GainNodes', () => {
Expand Down Expand Up @@ -186,10 +186,10 @@ describe('module', () => {
await page.evaluate(async () => {
new AudioBufferSourceNode(audioContext); // eslint-disable-line no-undef

await new Promise((resolve) => {
setTimeout(resolve, 1000);
});
await isSupported(); // eslint-disable-line no-undef
});

await page.evaluate(() => gc()); // eslint-disable-line no-undef
});

describe('with unconnected AudioBufferSourceNodes', () => {
Expand Down

0 comments on commit 167d4ea

Please sign in to comment.