fetch.test: don't sleep at the beginning? I'm really confused why it's not working
This commit is contained in:
parent
4bec5f6f78
commit
dc6a6ccb5f
|
@ -2,8 +2,6 @@ import { assertEquals, assertRejects } from '@/deps-test.ts';
|
|||
|
||||
import { fetchWorker } from './fetch.ts';
|
||||
|
||||
await sleep(2000);
|
||||
|
||||
Deno.test({
|
||||
name: 'fetchWorker',
|
||||
async fn() {
|
||||
|
@ -29,7 +27,3 @@ Deno.test({
|
|||
},
|
||||
sanitizeResources: false,
|
||||
});
|
||||
|
||||
function sleep(ms: number) {
|
||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue