Skip to content

Commit

Permalink
test: use kubo standard ports for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Oct 31, 2024
1 parent a872cd5 commit 02be55e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"@ipld/dag-pb": "^4.0.8",
"@jest/globals": "^29.7.0",
"@olizilla/lol": "2.0.0",
"@playwright/test": "^1.30.0",
"@playwright/test": "^1.48.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
Expand Down Expand Up @@ -173,7 +173,7 @@
"os-browserify": "^0.3.0",
"patch-package": "^6.4.7",
"path-browserify": "^1.0.1",
"playwright-chromium": "^1.27.1",
"playwright-chromium": "^1.48.2",
"postcss-flexbugs-fixes": "^5.0.2",
"run-script-os": "^1.1.6",
"semantic-release": "^19.0.3",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from '@playwright/test'
import getPort from 'aegir/get-port'

const webuiPort = 3001
const rpcPort = await getPort(55001, '0.0.0.0')
const rpcPort = await getPort(5001, '0.0.0.0')

/** @type {import('@playwright/test').Config} */
const config = {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/setup/ipfs-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const { console } = windowOrGlobal
let ipfsd
let ipfs
async function run (rpcPort) {
let gatewayPort = 8998
let gatewayPort = 8080
if (ipfsd != null && ipfs != null) {
throw new Error('IPFS backend already running')
}
Expand All @@ -25,7 +25,7 @@ async function run (rpcPort) {
ipfs = create(endpoint)
} else {
// use ipfds-ctl to spawn daemon to expose http api used for e2e tests
gatewayPort = await getPort(8998, '0.0.0.0')
gatewayPort = await getPort(gatewayPort, '0.0.0.0')
const factory = createFactory({
rpc: create,
type: 'kubo',
Expand Down

0 comments on commit 02be55e

Please sign in to comment.