Re-enable the audit tools step and update dependencies (#815)
* update package versions * run audit * fix eslint config * linter updates * re-enable audit * update timeouts test * pass done into callback * fix format
This commit is contained in:
1 parent
6b9a4806e4
commit
92f5e5f5e2
1 file changed
-4
@@ -122,11 +122,9 @@ describe('@actions/tool-cache', function() {
|
|||||||
|
|
||||||
setResponseMessageFactory(() => {
|
setResponseMessageFactory(() => {
|
||||||
const readStream = new stream.Readable()
|
const readStream = new stream.Readable()
|
||||||
/* eslint-disable @typescript-eslint/unbound-method */
|
|
||||||
readStream._read = () => {
|
readStream._read = () => {
|
||||||
readStream.destroy(new Error('uh oh'))
|
readStream.destroy(new Error('uh oh'))
|
||||||
}
|
}
|
||||||
/* eslint-enable @typescript-eslint/unbound-method */
|
|
||||||
return readStream
|
return readStream
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -149,7 +147,6 @@ describe('@actions/tool-cache', function() {
|
|||||||
.get('/retries-error-from-response-message-stream')
|
.get('/retries-error-from-response-message-stream')
|
||||||
.reply(200, {})
|
.reply(200, {})
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/unbound-method */
|
|
||||||
let attempt = 1
|
let attempt = 1
|
||||||
setResponseMessageFactory(() => {
|
setResponseMessageFactory(() => {
|
||||||
const readStream = new stream.Readable()
|
const readStream = new stream.Readable()
|
||||||
@@ -170,7 +167,6 @@ describe('@actions/tool-cache', function() {
|
|||||||
|
|
||||||
return readStream
|
return readStream
|
||||||
})
|
})
|
||||||
/* eslint-enable @typescript-eslint/unbound-method */
|
|
||||||
|
|
||||||
const downPath = await tc.downloadTool(
|
const downPath = await tc.downloadTool(
|
||||||
'http://example.com/retries-error-from-response-message-stream'
|
'http://example.com/retries-error-from-response-message-stream'
|
||||||
|
|||||||
Reference in new issue
Block a user