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 ebc8488 commit 0e4bffcCopy full SHA for 0e4bffc
firebase-vertexai/src/test/java/com/google/firebase/vertexai/util/tests.kt
@@ -189,15 +189,16 @@ internal fun goldenUnaryFile(
189
name: String,
190
httpStatusCode: HttpStatusCode = HttpStatusCode.OK,
191
block: CommonTest,
192
-) =
+) = doBlocking {
193
commonTest(httpStatusCode) {
194
val goldenFile = loadGoldenFile(name)
195
val message = goldenFile.readText()
196
197
- channel.send(message.toByteArray())
+ launch { channel.send(message.toByteArray()) }
198
199
block()
200
}
201
+}
202
203
/**
204
* A variant of [goldenUnaryFile] for vertexai tests Loads the *Golden File* and automatically
0 commit comments