Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Rd4dev/oppia-android int…
Browse files Browse the repository at this point in the history
…o code_coverage_test_file_exemption_rebuild
  • Loading branch information
Rd4dev committed Jun 21, 2024
2 parents dd24d3c + 14976d9 commit 760120c
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
Expand Down
1 change: 0 additions & 1 deletion data/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class NetworkLoggingInterceptorTest {
val firstRequestsDeferred = CoroutineScope(backgroundTestDispatcher).async {
networkLoggingInterceptor.logNetworkCallFlow.take(1).toList()
}
testCoroutineDispatchers.advanceUntilIdle() // Ensure the flow is subscribed before emit().
client.newCall(request).execute()
testCoroutineDispatchers.advanceUntilIdle()

Expand All @@ -116,6 +117,7 @@ class NetworkLoggingInterceptorTest {
networkLoggingInterceptor.logFailedNetworkCallFlow.take(1).toList()
}
mockWebServer.enqueue(mockResponse)
testCoroutineDispatchers.advanceUntilIdle() // Ensure the flow is subscribed before emit().
client.newCall(request).execute()
testCoroutineDispatchers.advanceUntilIdle()

Expand All @@ -141,6 +143,7 @@ class NetworkLoggingInterceptorTest {
val firstFailingRequestsDeferred = CoroutineScope(backgroundTestDispatcher).async {
networkLoggingInterceptor.logFailedNetworkCallFlow.take(1).toList()
}
testCoroutineDispatchers.advanceUntilIdle() // Ensure the flow is subscribed before emit().
try {
client.newCall(request).execute()
} catch (e: ConnectException) {
Expand Down
1 change: 0 additions & 1 deletion domain/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
Expand Down
1 change: 0 additions & 1 deletion testing/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
Expand Down
1 change: 0 additions & 1 deletion utility/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class ConsoleLoggerTest {
val firstErrorContextsDeferred = CoroutineScope(backgroundTestDispatcher).async {
consoleLogger.logErrorMessagesFlow.take(1).toList()
}

testCoroutineDispatchers.advanceUntilIdle() // Ensure the flow is subscribed before emit().
consoleLogger.e(testTag, testMessage)
testCoroutineDispatchers.advanceUntilIdle()

Expand Down

0 comments on commit 760120c

Please sign in to comment.