Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Efimov committed Dec 9, 2021
1 parent 33e1f59 commit 44a69db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry/src/test/java/io/sentry/TracesSamplerTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package io.sentry

import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import java.util.Random
import java.security.SecureRandom
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue

class TracesSamplerTest {
class Fixture {
internal fun getSut(randomResult: Double? = null, tracesSampleRate: Double? = null, tracesSamplerResult: Double? = Double.MIN_VALUE): TracesSampler {
val random = mock<Random>()
val random = mock<SecureRandom>()
if (randomResult != null) {
whenever(random.nextDouble()).thenReturn(randomResult)
}
Expand Down

0 comments on commit 44a69db

Please sign in to comment.