Skip to content

Commit

Permalink
Merge pull request stakwork#2144 from saithsab877/cypress-memory-issue
Browse files Browse the repository at this point in the history
Fix [Cypress]:  Chromium Renderer crash by optimizing memory management
  • Loading branch information
Rassl authored Sep 16, 2024
2 parents 7579eb6 + d9ddbb3 commit e97f158
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Clone Stack
run: |
git clone https://github.com/stakwork/sphinx-stack.git stack
Expand Down Expand Up @@ -67,8 +67,8 @@ jobs:
- name: Copy Node.json
uses: canastro/copy-file-action@master
with:
source: "stack/relay/NODES.json"
target: "relay/nodes.json"
source: 'stack/relay/NODES.json'
target: 'relay/nodes.json'

- name: Install
run: yarn --immutable
Expand All @@ -79,8 +79,9 @@ jobs:
with:
install-command: yarn --immutable
browser: chrome
headless: true
start: yarn run start-e2e
wait-on: "http://localhost:3000" # Waits for above
wait-on: 'http://localhost:3000' # Waits for above
wait-on-timeout: 120 # Waits for 2 minutes
# Records to Cypress Dashboard
record: true
Expand Down
3 changes: 3 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export default defineConfig({
viewportHeight: 900,
viewportWidth: 1440,
watchForFileChanges: false,
experimentalMemoryManagement: true,
numTestsKeptInMemory: 1,
video: false,
},
component: {
supportFile: './cypress/support/components.ts',
Expand Down

0 comments on commit e97f158

Please sign in to comment.