Skip to content

Commit 35ce7c6

Browse files
committed
fix tests and lint
1 parent 9139ac8 commit 35ce7c6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

test-http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const int = setInterval(() => {
99
}
1010
}, 100)
1111

12-
function later(f) {
12+
function later (f) {
1313
q.unshift(bind(f))
1414
}
1515

test.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ In one of the edges, asynchronous context is lost probably due to userland sched
9999
║ │ breakExample (${__dirname}/test.js:35:3)
100100
║ │ ${__dirname}/test.js:91:3
101101
║ │ ${__dirname}/node_modules/create-test-promise/index.js:12:36
102+
║ │ promisify (${__dirname}/node_modules/create-test-promise/index.js:12:3)
103+
║ │ p (${__dirname}/node_modules/create-test-promise/index.js:25:17)
104+
║ │ safeWrap (${__dirname}/node_modules/create-test-promise/index.js:23:32)
105+
║ │ Array.<anonymous> (${__dirname}/node_modules/create-test-promise/index.js:39:15)
106+
║ │ PitestiSuite.runTest (${__dirname}/node_modules/pitesti/index.js:67:18)
107+
║ │ ${__dirname}/node_modules/pitesti/index.js:79:22
102108
║ ├─┬ \u001b[33m### Immediate ###\u001b[0m
103109
║ │ │ doThing (${__dirname}/test.js:23:3)
104110
║ │ │ Immediate._onImmediate (${__dirname}/test.js:37:5)
@@ -146,7 +152,13 @@ Somewhere, you'll need to bind the two together.\u001b[0m
146152
],
147153
stack: `breakExample (${__dirname}/test.js:35:3)\n` +
148154
`${__dirname}/test.js:91:3\n` +
149-
`${__dirname}/node_modules/create-test-promise/index.js:12:36`
155+
`${__dirname}/node_modules/create-test-promise/index.js:12:36\n` +
156+
`promisify (${__dirname}/node_modules/create-test-promise/index.js:12:3)\n` +
157+
`p (${__dirname}/node_modules/create-test-promise/index.js:25:17)\n` +
158+
`safeWrap (${__dirname}/node_modules/create-test-promise/index.js:23:32)\n` +
159+
`Array.<anonymous> (${__dirname}/node_modules/create-test-promise/index.js:39:15)\n` +
160+
`PitestiSuite.runTest (${__dirname}/node_modules/pitesti/index.js:67:18)\n` +
161+
`${__dirname}/node_modules/pitesti/index.js:79:22`
150162
})
151163
assertTreeEqual(e.list, {
152164
type: 'Timeout',

0 commit comments

Comments
 (0)