Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Feb 27, 2024
1 parent 11be4d1 commit 132c13a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ jobs:
npm run unit
# Skipping integration until we can get native arm64 runners
# npm run integration
- run: cat package.json
if: '!cancelled()'
- name: Update modules cache
uses: actions/cache/save@v4
# We always want to run this step even if the "test" step failed.
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/loop-metrics.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ tap.test('Loop Metrics', function (t) {
// XXX Keep this as a timeout. On Node v4 it causes an extra period of idle
// wait on IO due to a bug in timers. This time should not be counted in
// the actual loop time because the process isn't doing anything.
setTimeout(spinner, 10)
setTimeout(spinner, 100)

function spinner() {
t.comment('spinning cpu...')
const start = Date.now()
while (Date.now() - start < SPIN_TIME) {} // Spin the CPU for 2 seconds.

// Finally, wait another tick and then check the loop stats.
setTimeout(afterSpin, 10)
setTimeout(afterSpin, 100)
}

function afterSpin() {
Expand Down

0 comments on commit 132c13a

Please sign in to comment.