diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-11 10:20:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 10:20:47 -0400 |
| commit | 15a763152f9d392cb80692262f8de5ef8ae15495 (patch) | |
| tree | fcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tests/workers/racy_worker.js | |
| parent | a0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff) | |
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tests/workers/racy_worker.js')
| -rw-r--r-- | cli/tests/workers/racy_worker.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cli/tests/workers/racy_worker.js b/cli/tests/workers/racy_worker.js deleted file mode 100644 index 0f66c6278..000000000 --- a/cli/tests/workers/racy_worker.js +++ /dev/null @@ -1,25 +0,0 @@ -// See issue for details -// https://github.com/denoland/deno/issues/4080 -// -// After first received message, this worker schedules -// [assert(), close(), assert()] ops on the same turn of microtask queue -// All tasks after close should not make it - -onmessage = async function () { - let stage = 0; - await new Promise((_) => { - setTimeout(() => { - if (stage !== 0) throw "Unexpected stage"; - stage = 1; - }, 50); - setTimeout(() => { - if (stage !== 1) throw "Unexpected stage"; - stage = 2; - postMessage("DONE"); - close(); - }, 50); - setTimeout(() => { - throw "This should not be run"; - }, 50); - }); -}; |
