Skip to content

Commit 7f2ea5c

Browse files
committed
fix: manual fix on src/tests/integration/stdio-client-server.integration.ts
1 parent 8e7c174 commit 7f2ea5c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/tests/integration/stdio-client-server.integration.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,14 @@ describe('Stdio Client-Server Integration Tests', () => {
460460
// vi.mocked(qdrantModule.batchUpsertVectors).mockClear(); // No longer spying on this
461461

462462
const sutOutputCaptured: string[] = [];
463-
if (transport.process && transport.process.stdout) {
464-
transport.process.stdout.on('data', (data) => {
463+
// Access the underlying process directly to capture output
464+
// We need to cast transport to access private members
465+
const transportProcess = (transport as any)._process as ChildProcess;
466+
if (transportProcess) {
467+
transportProcess.stdout?.on('data', (data) => {
465468
sutOutputCaptured.push(data.toString());
466469
});
467-
}
468-
if (transport.process && transport.process.stderr) {
469-
transport.process.stderr.on('data', (data) => { // Also capture stderr for debugging
470+
transportProcess.stderr?.on('data', (data) => {
470471
sutOutputCaptured.push(data.toString());
471472
});
472473
}

0 commit comments

Comments
 (0)