1
0
Fork 0

updating proxy

pull/1477/head
Vallie Joseph 2023-07-31 22:57:31 +00:00
parent 0351982fe9
commit 5113ec3ea5
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import * as http from 'http'
import proxy from 'proxy'
import {ProxyServer, 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()
proxyServer = createProxy(http.createServer())
await new Promise(resolve => {
const port = Number(proxyUrl.split(':')[2])
proxyServer.listen(port, () => resolve(null))