Skip to content

Commit 1cf65b9

Browse files
authored
[VertexAI] Bump timeout for error test (#6807)
The test `genStreamError_receivesError` is flaky due to timeout issues. Bumping timeout to 10s.
1 parent baa335c commit 1cf65b9

File tree

1 file changed

+3
-3
lines changed
  • firebase-functions/src/androidTest/java/com/google/firebase/functions

1 file changed

+3
-3
lines changed

firebase-functions/src/androidTest/java/com/google/firebase/functions/StreamTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ class StreamTests {
128128
fun genStreamError_receivesError() = runBlocking {
129129
val input = mapOf("data" to "test error")
130130
val function =
131-
functions.getHttpsCallable("genStreamError").withTimeout(2000, TimeUnit.MILLISECONDS)
131+
functions.getHttpsCallable("genStreamError").withTimeout(10_000, TimeUnit.MILLISECONDS)
132132
val subscriber = StreamSubscriber()
133133

134134
function.stream(input).subscribe(subscriber)
135135

136-
withTimeout(2000) {
136+
withTimeout(10_000) {
137137
while (subscriber.throwable == null) {
138-
delay(100)
138+
delay(1_000)
139139
}
140140
}
141141

0 commit comments

Comments
 (0)