Skip to content

Commit b78c4d2

Browse files
committed
Fix output nullability in integration test
1 parent 7cac4b5 commit b78c4d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FirebaseAI/Tests/TestApp/Tests/Integration/GenerateContentIntegrationTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@ struct GenerateContentIntegrationTests {
447447
#expect(codeExecutionResults.count == 1)
448448
let codeExecutionResultPart = try #require(codeExecutionResults.first)
449449
#expect(codeExecutionResultPart.outcome == .ok)
450-
#expect(codeExecutionResultPart.output.contains("28")) // 2 + 3 + 5 + 7 + 11 = 28
450+
let output = try #require(codeExecutionResultPart.output)
451+
#expect(output.contains("28")) // 2 + 3 + 5 + 7 + 11 = 28
451452
let text = try #require(response.text)
452453
#expect(text.contains("28"))
453454
}

0 commit comments

Comments
 (0)