Skip to content

Commit 3bc52e3

Browse files
authored
[Vertex AI] Read golden files from vertexai subdirectory (#14582)
1 parent 5e97e05 commit 3bc52e3

File tree

4 files changed

+109
-45
lines changed

4 files changed

+109
-45
lines changed

FirebaseVertexAI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Firebase SDK.
6161
unit_tests_dir + '**/*.swift',
6262
]
6363
unit_tests.resources = [
64-
unit_tests_dir + 'vertexai-sdk-test-data/mock-responses/**/*.{txt,json}',
64+
unit_tests_dir + 'vertexai-sdk-test-data/mock-responses/vertexai',
6565
unit_tests_dir + 'Resources/**/*',
6666
]
6767
end

FirebaseVertexAI/Tests/Unit/ChatTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ final class ChatTests: XCTestCase {
3636
let bundle = BundleTestUtil.bundle()
3737
let fileURL = try XCTUnwrap(bundle.url(
3838
forResource: "streaming-success-basic-reply-parts",
39-
withExtension: "txt"
39+
withExtension: "txt",
40+
subdirectory: "vertexai"
4041
))
4142

4243
// Skip tests using MockURLProtocol on watchOS; unsupported in watchOS 2 and later, see

0 commit comments

Comments
 (0)