Skip to content

Commit 11c02ef

Browse files
committed
Remove extraneous test
1 parent 0069932 commit 11c02ef

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

packages/firebase_ai/firebase_ai/test/api_test.dart

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ void main() {
616616
});
617617

618618
group('usageMetadata parsing', () {
619-
test('parses usageMetadata with thoughtsTokenCount correctly', () {
619+
test('parses usageMetadata when thoughtsTokenCount is set', () {
620620
final json = {
621621
'usageMetadata': {
622622
'promptTokenCount': 10,
@@ -647,22 +647,6 @@ void main() {
647647
expect(response.usageMetadata, isNotNull);
648648
expect(response.usageMetadata!.thoughtsTokenCount, isNull);
649649
});
650-
651-
test('parses usageMetadata when thoughtsTokenCount is present but null',
652-
() {
653-
final json = {
654-
'usageMetadata': {
655-
'promptTokenCount': 10,
656-
'candidatesTokenCount': 20,
657-
'totalTokenCount': 30,
658-
'thoughtsTokenCount': null,
659-
}
660-
};
661-
final response =
662-
VertexSerialization().parseGenerateContentResponse(json);
663-
expect(response.usageMetadata, isNotNull);
664-
expect(response.usageMetadata!.thoughtsTokenCount, isNull);
665-
});
666650
});
667651

668652
group('groundingMetadata parsing', () {

0 commit comments

Comments
 (0)