Skip to content

Commit

Permalink
Format codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Li authored and paulrenn67 committed Aug 10, 2022
1 parent 715994a commit b7fb192
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ class MapboxRenderThreadTest {
idleHandler()
}

private fun mockCountdownRunnable(latch: CountDownLatch) = mockk<Runnable>(relaxUnitFun = true).also {
every { it.run() } answers { latch.countDown() }
}
private fun mockCountdownRunnable(latch: CountDownLatch) =
mockk<Runnable>(relaxUnitFun = true).also {
every { it.run() } answers { latch.countDown() }
}

@After
fun cleanup() {
Expand Down Expand Up @@ -877,7 +878,7 @@ class MapboxRenderThreadTest {
}
}

@Test(timeout=10000) // Added timeout to ensure that if test fails, test does not hang forever.
@Test(timeout = 10000) // Added timeout to ensure that if test fails, test does not hang forever.
fun onSurfaceWithActivityDestroyedBeforeSurfaceWithDestroyTaskInQueueTest() {
initRenderThread()
provideValidSurface()
Expand Down

0 comments on commit b7fb192

Please sign in to comment.