Skip to content

Commit 45354e4

Browse files
committed
Fix IntegrationTests
1 parent 9324338 commit 45354e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseAI/Tests/TestApp/Tests/Integration/IntegrationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class IntegrationTests: XCTestCase {
4949

5050
override func setUp() async throws {
5151
userID1 = try await TestHelpers.getUserID()
52-
vertex = FirebaseAI.vertexAI()
52+
vertex = FirebaseAI.firebaseAI(backend: .vertexAI())
5353
model = vertex.generativeModel(
5454
modelName: "gemini-2.0-flash",
5555
generationConfig: generationConfig,
@@ -200,7 +200,7 @@ final class IntegrationTests: XCTestCase {
200200

201201
func testCountTokens_appCheckNotConfigured_shouldFail() async throws {
202202
let app = try XCTUnwrap(FirebaseApp.app(name: FirebaseAppNames.appCheckNotConfigured))
203-
let vertex = FirebaseAI.vertexAI(app: app)
203+
let vertex = FirebaseAI.firebaseAI(app: app, backend: .vertexAI())
204204
let model = vertex.generativeModel(modelName: "gemini-2.0-flash")
205205
let prompt = "Why is the sky blue?"
206206

0 commit comments

Comments
 (0)