Merge pull request #20412 from backstage/rugvip/e2e-win

e2e-test: fix hanging backend process on Windows
This commit is contained in:
Patrik Oldsberg
2023-10-06 06:13:05 +02:00
committed by GitHub
+2
View File
@@ -427,6 +427,8 @@ async function dropClientDatabases(client: string) {
async function testBackendStart(appDir: string, ...args: string[]) {
const child = spawnPiped(['yarn', 'workspace', 'backend', 'start', ...args], {
cwd: appDir,
// Windows does not like piping stdin here, the child process will hang when requiring the 'process' module
stdio: ['ignore', 'pipe', 'pipe'],
env: {
...process.env,
GITHUB_TOKEN: 'abc',