Skip to content

test: wait for service worker using runningStatus - #300

Merged
dsanders11 merged 1 commit into
mainfrom
test/running-status
Sep 9, 2025
Merged

test: wait for service worker using runningStatus#300
dsanders11 merged 1 commit into
mainfrom
test/running-status

Conversation

@hitarth-gg

Copy link
Copy Markdown
Collaborator

Description of Change

  • Wait for Devtron's Service Worker to start using serviceWorkers.on('running-status-changed', listener) instead of relying on setTimeout.
  • Increase the delay to ensure IPC events are fully processed before running tests.
  • Potentially fixes random test flakiness.

@hitarth-gg
hitarth-gg requested a review from a team as a code owner September 5, 2025 10:00
@hitarth-gg

Copy link
Copy Markdown
Collaborator Author

Ran the tests a couple of times on my fork with this fix and they haven't failed so far. Hopefully, this reduces the likelihood of the tests flaking 🤞.

@dsanders11
dsanders11 merged commit 270546d into main Sep 9, 2025
12 checks passed
@dsanders11
dsanders11 deleted the test/running-status branch September 9, 2025 00:22
@electron-npm-package-publisher

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants