Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();
const baseUrl = server.url;

Expand Down Expand Up @@ -49,8 +49,5 @@ async function run() {
await chain.invoke({ topic: 'weather' }, { callbacks: [handler] });
});

await Sentry.flush(2000);
server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();
const baseUrl = server.url;

Expand Down Expand Up @@ -72,8 +72,5 @@ async function run() {
await chain.invoke({ topic: 'weather' }, { callbacks: [handler] });
});

await Sentry.flush(2000);
server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function startMockOpenAIServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockOpenAIServer();
const baseUrl = `${server.url}/v1`;

Expand Down Expand Up @@ -58,9 +58,5 @@ async function run() {
}
});

await Sentry.flush(2000);

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function startMockApi() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockApi();
const baseUrl = server.url;

Expand All @@ -43,5 +43,3 @@ async function run() {

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();
const baseUrl = server.url;

Expand Down Expand Up @@ -67,9 +67,5 @@ async function run() {
});
});

await Sentry.flush(2000);

server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();
const baseUrl = server.url;

Expand Down Expand Up @@ -82,9 +82,5 @@ async function run() {
}
});

await Sentry.flush(2000);

server.close();
}

run();
592 changes: 283 additions & 309 deletions dev-packages/node-integration-tests/suites/tracing/langchain/test.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('LangChain integration (v1)', () => {
afterAll(() => {
cleanupChildProcesses();
});

createEsmAndCjsTests(
join(__dirname, '..'),
'scenario-typesafe-classifier.mjs',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();
const baseUrl = server.url;

Expand Down Expand Up @@ -49,8 +49,5 @@ async function run() {
await chain.invoke({ topic: 'weather' });
});

await Sentry.flush(2000);
server.close();
}

run();
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function startMockAnthropicServer() {
return startMockServer(app);
}

async function run() {
export async function run() {
const server = await startMockAnthropicServer();
const baseUrl = server.url;

Expand Down Expand Up @@ -83,8 +83,5 @@ async function run() {
});
});

await Sentry.flush(2000);
server.close();
}

run();
Loading
Loading