Skip to content

Commit 4e168eb

Browse files
author
abluchet
committed
Use callback in tests
1 parent 6c01361 commit 4e168eb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/random-access-http.test.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ test('raHttp.write does not throw error', (t) => {
135135
startServer(standardHandler, (err) => {
136136
t.error(err)
137137
var ra = raHttp('test-write', { url: 'http://localhost:3000' })
138-
t.doesNotThrow(ra.write.bind(ra, 10, 'some-data'))
139-
stopServer(t)
138+
t.doesNotThrow(ra.write.bind(ra, 10, 'some-data', function () {
139+
stopServer(t)
140+
}))
140141
})
141142
})
142143

@@ -163,8 +164,9 @@ test('raHttp.del does not throw error', (t) => {
163164
startServer(standardHandler, (err) => {
164165
t.error(err)
165166
var ra = raHttp('test-del', { url: 'http://localhost:3000' })
166-
t.doesNotThrow(ra.del.bind(ra, 10, 100))
167-
stopServer(t)
167+
t.doesNotThrow(ra.del.bind(ra, 10, 100, function () {
168+
stopServer(t)
169+
}))
168170
})
169171
})
170172

0 commit comments

Comments
 (0)