We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7924813 commit 83a513aCopy full SHA for 83a513a
firebase-ai/src/test/java/com/google/firebase/ai/util/tests.kt
@@ -210,15 +210,16 @@ internal fun goldenUnaryFile(
210
httpStatusCode: HttpStatusCode = HttpStatusCode.OK,
211
backend: GenerativeBackend = GenerativeBackend.vertexAI(),
212
block: CommonTest,
213
-) =
+) = doBlocking {
214
commonTest(httpStatusCode, backend = backend) {
215
val goldenFile = loadGoldenFile(name)
216
val message = goldenFile.readText()
217
218
- channel.send(message.toByteArray())
+ launch { channel.send(message.toByteArray()) }
219
220
block()
221
}
222
+}
223
224
/**
225
* A variant of [goldenUnaryFile] for vertexai tests Loads the *Golden File* and automatically
0 commit comments