try to fix test

This commit is contained in:
Tatyana Kostromskaya committed 2023-09-15 13:28:29 +00:00
1 parent 13e3c0f169
commit 4574e1f21a
2 files changed
+9 -8

No files matched your search

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