Skip to content

Commit 3f683e6

Browse files
committed
Improve tests
1 parent b0c36d9 commit 3f683e6

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ class StreamTests {
116116
throwable = e
117117
}
118118

119+
assertThat(throwable).isNull()
119120
assertThat(messages.map { it.message.data.toString() })
120121
.containsExactly("hello", "world", "this", "is", "cool")
121122
assertThat(result).isNotNull()
122123
assertThat(result!!.result.data.toString()).isEqualTo("hello world this is cool")
123-
assertThat(throwable).isNull()
124124
assertThat(isComplete).isTrue()
125125
}
126126

@@ -196,6 +196,7 @@ class StreamTests {
196196
function.stream(mapOf("data" to "test")).subscribe(subscriber)
197197

198198
withTimeout(2000) { delay(500) }
199+
assertThat(subscriber.throwable).isNull()
199200
assertThat(subscriber.messages).isEmpty()
200201
assertThat(subscriber.result).isNull()
201202
}

0 commit comments

Comments
 (0)