Skip to content

Commit f948ef1

Browse files
committed
Set fetch timeout for tests
1 parent 30b502c commit f948ef1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/schema.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { describe, it, expect, afterEach } from "vitest";
2+
import { Agent, setGlobalDispatcher } from "undici";
23
import { RetrievalError } from "@hyperjump/browser";
34
import { registerSchema, unregisterSchema } from "./index.js";
45
import { getSchema, hasDialect } from "./experimental.js";
@@ -9,6 +10,8 @@ import "../draft-07/index.js";
910
import "../draft-04/index.js";
1011

1112

13+
setGlobalDispatcher(new Agent({ connect: { timeout: 100 } }));
14+
1215
describe("Schema Parsing", () => {
1316
const testDomain = "https://test.hyperjump.io";
1417

0 commit comments

Comments
 (0)