Skip to content

Commit d3eaff7

Browse files
authored
chore(firebaseai): fix error message test failure (#17644)
* error message test failure * more message test update * fix * fix the string * hopefully the final one
1 parent b0ce252 commit d3eaff7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/firebase_ai/firebase_ai/test/error_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void main() {
1919
group('VertexAI Exceptions', () {
2020
test('VertexAIException toString', () {
2121
final exception = FirebaseAIException('Test message');
22-
expect(exception.toString(), 'VertexAIException: Test message');
22+
expect(exception.toString(), 'FirebaseAIException: Test message');
2323
});
2424

2525
test('InvalidApiKey toString', () {
@@ -55,12 +55,12 @@ void main() {
5555
expect(exception.toString(), 'Server error occurred.');
5656
});
5757

58-
test('VertexAISdkException toString', () {
58+
test('FirebaseAISdkException toString', () {
5959
final exception = FirebaseAISdkException('SDK failed to parse response.');
6060
expect(
6161
exception.toString(),
6262
'SDK failed to parse response.\n'
63-
'This indicates a problem with the Vertex AI in Firebase SDK. '
63+
'This indicates a problem with the Firebase AI Logic SDK. '
6464
'Try updating to the latest version '
6565
'(https://pub.dev/packages/firebase_ai/versions), '
6666
'or file an issue at '

packages/firebase_vertexai/firebase_vertexai/test/error_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void main() {
2121
group('VertexAI Exceptions', () {
2222
test('VertexAIException toString', () {
2323
final exception = VertexAIException('Test message');
24-
expect(exception.toString(), 'VertexAIException: Test message');
24+
expect(exception.toString(), 'FirebaseAIException: Test message');
2525
});
2626

2727
test('InvalidApiKey toString', () {
@@ -57,12 +57,12 @@ void main() {
5757
expect(exception.toString(), 'Server error occurred.');
5858
});
5959

60-
test('VertexAISdkException toString', () {
60+
test('FirebaseAISdkException toString', () {
6161
final exception = VertexAISdkException('SDK failed to parse response.');
6262
expect(
6363
exception.toString(),
6464
'SDK failed to parse response.\n'
65-
'This indicates a problem with the Vertex AI in Firebase SDK. '
65+
'This indicates a problem with the Firebase AI Logic SDK. '
6666
'Try updating to the latest version '
6767
'(https://pub.dev/packages/firebase_ai/versions), '
6868
'or file an issue at '

0 commit comments

Comments
 (0)