Skip to content

Commit affb6f9

Browse files
committed
try to fix timeout issue
1 parent f2d429c commit affb6f9

File tree

2 files changed

+11
-2
lines changed
  • dev-packages/browser-integration-tests/suites/tracing/ai-providers

2 files changed

+11
-2
lines changed

dev-packages/browser-integration-tests/suites/tracing/ai-providers/anthropic/subject.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ const client = Sentry.instrumentAnthropicAiClient(mockClient);
99

1010
// Test that manual instrumentation doesn't crash the browser
1111
// The instrumentation automatically creates spans
12-
await client.messages.create({
12+
const response = await client.messages.create({
1313
model: 'claude-3-haiku-20240307',
1414
messages: [{ role: 'user', content: 'What is the capital of France?' }],
1515
temperature: 0.7,
1616
max_tokens: 100,
1717
});
18+
19+
// eslint-disable-next-line no-console
20+
console.log(JSON.stringify(response));

dev-packages/browser-integration-tests/suites/tracing/ai-providers/openai/subject.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const client = Sentry.instrumentOpenAiClient(mockClient);
99

1010
// Test that manual instrumentation doesn't crash the browser
1111
// The instrumentation automatically creates spans
12-
await client.chat.completions.create({
12+
const response = await client.chat.completions.create({
1313
model: 'gpt-3.5-turbo',
1414
messages: [
1515
{ role: 'system', content: 'You are a helpful assistant.' },
@@ -18,3 +18,9 @@ await client.chat.completions.create({
1818
temperature: 0.7,
1919
max_tokens: 100,
2020
});
21+
22+
// eslint-disable-next-line no-console
23+
console.log(JSON.stringify(response));
24+
25+
26+

0 commit comments

Comments
 (0)