mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
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
1 changed files with 0 additions and 6 deletions
|
|
@ -2,8 +2,6 @@ import { assertEquals, assertRejects } from '@/deps-test.ts';
|
||||||
|
|
||||||
import { fetchWorker } from './fetch.ts';
|
import { fetchWorker } from './fetch.ts';
|
||||||
|
|
||||||
await sleep(2000);
|
|
||||||
|
|
||||||
Deno.test({
|
Deno.test({
|
||||||
name: 'fetchWorker',
|
name: 'fetchWorker',
|
||||||
async fn() {
|
async fn() {
|
||||||
|
|
@ -29,7 +27,3 @@ Deno.test({
|
||||||
},
|
},
|
||||||
sanitizeResources: false,
|
sanitizeResources: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
function sleep(ms: number) {
|
|
||||||
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue