Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ internal class OneSignalImp : IOneSignal,
private fun reportStartupTimeline() {
try {
if (StartupTimeline.claimReport()) Logging.info("OneSignal: ${StartupTimeline.summary()}")
} catch (_: RuntimeException) {
} catch (_: Throwable) {
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import io.kotest.matchers.string.shouldEndWith
import io.kotest.matchers.string.shouldNotContain
import kotlinx.coroutines.CompletableDeferred
import org.robolectric.shadows.ShadowSystemClock
import java.io.IOException
import java.time.Duration
import java.util.concurrent.CopyOnWriteArrayList
import kotlin.concurrent.thread
Expand Down Expand Up @@ -161,7 +162,7 @@ class StartupTimelineTests : FunSpec({
val os = OneSignalImp()
os.setField("initState", InitState.IN_PROGRESS)
os.setField("suspendCompletion", CompletableDeferred<Unit>())
val listener = ILogListener { if (it.entry.contains("startup_timeline")) throw IllegalStateException("customer") }
val listener = ILogListener { if (it.entry.contains("startup_timeline")) throw IOException("customer") }
Logging.addListener(listener)
try {
os.method("completeInit", InitState::class.java).invoke(os, InitState.SUCCESS)
Expand Down
Loading