Skip to content

Commit 1476462

Browse files
remove unnecessary timeout
1 parent ef2101d commit 1476462

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

fixtures/get-platform-proxy-remote-bindings/tests/remote-bindings-false.test.ts

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,25 @@ import { describe, expect, test } from "vitest";
22
import { getPlatformProxy } from "wrangler";
33
import type { Ai } from "@cloudflare/workers-types/experimental";
44

5-
describe(
6-
"getPlatformProxy - remote bindings with remoteBindings: false",
7-
{ timeout: 50_000 },
8-
() => {
9-
test("getPlatformProxy works with remote bindings", async () => {
10-
const { env, dispose } = await getPlatformProxy<{
11-
AI: Ai;
12-
}>({
13-
configPath: "./wrangler.remote-bindings-false.jsonc",
14-
remoteBindings: false,
15-
});
5+
describe("getPlatformProxy - remote bindings with remoteBindings: false", () => {
6+
test("getPlatformProxy works with remote bindings", async () => {
7+
const { env, dispose } = await getPlatformProxy<{
8+
AI: Ai;
9+
}>({
10+
configPath: "./wrangler.remote-bindings-false.jsonc",
11+
remoteBindings: false,
12+
});
1613

17-
await expect(
18-
(async () => {
19-
await env.AI.run("@cf/meta/llama-3.1-8b-instruct-fp8", {
20-
messages: [],
21-
});
22-
})()
23-
).rejects.toThrowErrorMatchingInlineSnapshot(
24-
`[Error: Binding AI needs to be run remotely]`
25-
);
14+
await expect(
15+
(async () => {
16+
await env.AI.run("@cf/meta/llama-3.1-8b-instruct-fp8", {
17+
messages: [],
18+
});
19+
})()
20+
).rejects.toThrowErrorMatchingInlineSnapshot(
21+
`[Error: Binding AI needs to be run remotely]`
22+
);
2623

27-
await dispose();
28-
});
29-
}
30-
);
24+
await dispose();
25+
});
26+
});

0 commit comments

Comments
 (0)