-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: migrate to new deno_core and metrics #21057
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3425,11 +3425,6 @@ itest!(unstable_ffi_19 { | |
exit_code: 70, | ||
}); | ||
|
||
itest!(future_check2 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was effectively doing and testing nothing. |
||
args: "run --check run/future_check.ts", | ||
output: "run/future_check2.out", | ||
}); | ||
|
||
itest!(event_listener_error { | ||
args: "run --quiet run/event_listener_error.ts", | ||
output: "run/event_listener_error.ts.out", | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -412,19 +412,6 @@ Deno.test(function clearTimeoutAndClearIntervalNotBeEquals() { | |
assertNotEquals(clearTimeout, clearInterval); | ||
}); | ||
|
||
Deno.test(async function timerMaxCpuBug() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I couldn't think of a good way to replicate this test without using metrics... thoughts? |
||
// There was a bug where clearing a timeout would cause Deno to use 100% CPU. | ||
clearTimeout(setTimeout(() => {}, 1000)); | ||
// We can check this by counting how many ops have triggered in the interim. | ||
// Certainly less than 10 ops should have been dispatched in next 100 ms. | ||
const { ops: pre } = Deno.metrics(); | ||
await delay(100); | ||
const { ops: post } = Deno.metrics(); | ||
const before = pre.op_sleep.opsDispatched; | ||
const after = post.op_sleep.opsDispatched; | ||
assert(after - before < 10); | ||
}); | ||
|
||
Deno.test(async function timerOrdering() { | ||
const array: number[] = []; | ||
const donePromise = deferred(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a flag but isn't currently exposed on the CLI args yet.