mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
fix(ci): systematic fixes for E2E tests and CI environment
- `js/nostr/client.js`: Exposed `derivePrivateKeyFromSecret` to `NostrClient` (delegating to `SignerManager`) to support programmatic login in E2E tests. - `tests/e2e/helpers/bitvidTestFixture.ts`: Refactored to use dynamic relay ports based on `workerIndex` to fix parallel execution collisions. - `scripts/agent/simple-relay.mjs`: Updated `close()` to force terminate connected clients, preventing test teardown hangs. - `scripts/check-sw-compat.mjs`: Added try-catch around git commands to gracefully handle shallow clones in CI environments. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
f0f078b843
commit
3ef17d1122
4 files changed
+54
-33
No files matched your search
@@ -194,6 +194,11 @@ export function startRelay(port = 8888, options = {}) {
|
||||
return {
|
||||
close: () => {
|
||||
return new Promise((resolve) => {
|
||||
// Force close all connected clients
|
||||
for (const client of wss.clients) {
|
||||
client.terminate();
|
||||
}
|
||||
|
||||
const closeHttp = httpServer
|
||||
? new Promise((r) => httpServer.close(r))
|
||||
: Promise.resolve();
|
||||
|
||||
Reference in new issue
Block a user