fix tests
This commit is contained in:
1 parent
4574e1f21a
commit
646dd225cb
4 files changed
+40
-8
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import * as http from 'http'
|
||||
import * as proxy from 'proxy'
|
||||
import { createProxy } from 'proxy'
|
||||
import {getOctokit} from '../src/github'
|
||||
import {GitHub, getOctokitOptions} from '../src/utils'
|
||||
|
||||
@@ -12,7 +12,7 @@ describe('@actions/github', () => {
|
||||
|
||||
beforeAll(async () => {
|
||||
// Start proxy server
|
||||
proxyServer = proxy.createProxy()
|
||||
proxyServer = createProxy()
|
||||
await new Promise(resolve => {
|
||||
const port = Number(proxyUrl.split(':')[2])
|
||||
proxyServer.listen(port, () => resolve(null))
|
||||
|
||||
Reference in new issue
Block a user