Skip to content

Commit f2d429c

Browse files
committed
await the call
1 parent d611a75 commit f2d429c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

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

1010
// Test that manual instrumentation doesn't crash the browser
1111
// The instrumentation automatically creates spans
12-
client.messages.create({
12+
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,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ const chat = client.chats.create({
2525
],
2626
});
2727

28-
chat.sendMessage({
28+
await chat.sendMessage({
2929
message: 'Tell me a joke',
3030
});

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

Lines changed: 1 addition & 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-
client.chat.completions.create({
12+
await client.chat.completions.create({
1313
model: 'gpt-3.5-turbo',
1414
messages: [
1515
{ role: 'system', content: 'You are a helpful assistant.' },

0 commit comments

Comments
 (0)