File tree 1 file changed +5
-5
lines changed
firebase-functions/src/androidTest/java/com/google/firebase/functions
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ class StreamTests {
102
102
103
103
val flow = function.stream(input).asFlow()
104
104
try {
105
- withTimeout(1000 ) {
105
+ withTimeout(10_000 ) {
106
106
flow.collect { response ->
107
107
if (response is StreamResponse .Message ) {
108
108
messages.add(response)
@@ -146,14 +146,14 @@ class StreamTests {
146
146
@Test
147
147
fun nonExistentFunction_receivesError () = runBlocking {
148
148
val function =
149
- functions.getHttpsCallable(" nonexistentFunction" ).withTimeout(2000 , TimeUnit .MILLISECONDS )
149
+ functions.getHttpsCallable(" nonexistentFunction" ).withTimeout(10_000 , TimeUnit .MILLISECONDS )
150
150
val subscriber = StreamSubscriber ()
151
151
152
152
function.stream().subscribe(subscriber)
153
153
154
- withTimeout(2000 ) {
154
+ withTimeout(10_000 ) {
155
155
while (subscriber.throwable == null ) {
156
- delay(100 )
156
+ delay(1_000 )
157
157
}
158
158
}
159
159
@@ -195,7 +195,7 @@ class StreamTests {
195
195
196
196
function.stream(mapOf (" data" to " test" )).subscribe(subscriber)
197
197
198
- withTimeout(2000 ) { delay(500 ) }
198
+ withTimeout(10_000 ) { delay(1000 ) }
199
199
assertThat(subscriber.throwable).isNull()
200
200
assertThat(subscriber.messages).isEmpty()
201
201
assertThat(subscriber.result).isNull()
You can’t perform that action at this time.
0 commit comments