Skip to content

Commit 0e4bffc

Browse files
committed
Update tests.kt
1 parent ebc8488 commit 0e4bffc

File tree

1 file changed

+3
-2
lines changed
  • firebase-vertexai/src/test/java/com/google/firebase/vertexai/util

1 file changed

+3
-2
lines changed

firebase-vertexai/src/test/java/com/google/firebase/vertexai/util/tests.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,16 @@ internal fun goldenUnaryFile(
189189
name: String,
190190
httpStatusCode: HttpStatusCode = HttpStatusCode.OK,
191191
block: CommonTest,
192-
) =
192+
) = doBlocking {
193193
commonTest(httpStatusCode) {
194194
val goldenFile = loadGoldenFile(name)
195195
val message = goldenFile.readText()
196196

197-
channel.send(message.toByteArray())
197+
launch { channel.send(message.toByteArray()) }
198198

199199
block()
200200
}
201+
}
201202

202203
/**
203204
* A variant of [goldenUnaryFile] for vertexai tests Loads the *Golden File* and automatically

0 commit comments

Comments
 (0)