-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add easy to use isolate runner test (#1750)
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
- Loading branch information
1 parent
911358e
commit 1994555
Showing
5 changed files
with
147 additions
and
108 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Used by the test in isolate.rs | ||
|
||
export default { | ||
async start(ctx) { | ||
console.log(ctx); | ||
|
||
await ctx.kv.put(['foob', 'b'], 1); | ||
|
||
let res = await ctx.kv.getBatch(['foob', 'b']); | ||
console.log(res, res.get(['foob', 'b'])); | ||
|
||
Deno.exit(2); | ||
|
||
throw new Error('bingus'); | ||
} | ||
}; |
105 changes: 0 additions & 105 deletions
105
packages/infra/client/isolate-v8-runner/tests/integration.rs
This file was deleted.
Oops, something went wrong.