fetch.test: don't sleep at the beginning? I'm really confused why it's not working

This commit is contained in:
Alex Gleason
2024-01-22 11:48:52 -06:00
parent 4bec5f6f78
commit dc6a6ccb5f

View File

@@ -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));
}