Skip to content

Commit bfed066

Browse files
remove unnecessary function wrapping
1 parent 0c14ec8 commit bfed066

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ describe("getPlatformProxy - remote bindings with remoteBindings: false", () =>
1212
});
1313

1414
await expect(
15-
(async () => {
16-
await env.AI.run("@cf/meta/llama-3.1-8b-instruct-fp8", {
17-
messages: [],
18-
});
19-
})()
15+
env.AI.run("@cf/meta/llama-3.1-8b-instruct-fp8", {
16+
messages: [],
17+
})
2018
).rejects.toThrowErrorMatchingInlineSnapshot(
2119
`[Error: Binding AI needs to be run remotely]`
2220
);

0 commit comments

Comments
 (0)