@@ -11,7 +11,6 @@ import io.sentry.SpanDataConvention
1111import io.sentry.SpanStatus
1212import io.sentry.TransactionContext
1313import io.sentry.util.thread.IThreadChecker
14- import java.util.Date
1514import kotlin.test.Test
1615import kotlin.test.assertEquals
1716import kotlin.test.assertFalse
@@ -51,7 +50,7 @@ class SQLiteSpanInstrumentationTest {
5150 // Only the parent date is queued. If startTimestamp() were to call dateProvider.now(),
5251 // the queue would underflow and the test would fail loudly — this is what verifies the
5352 // optimization is in effect.
54- val parentDate = SentryNanotimeDate (Date ( 1_000_000L ) , 100_000_000L )
53+ val parentDate = SentryNanotimeDate (1_000_000L , 100_000_000L )
5554 val sut = setUpWithNanotimeDates(parentDate)
5655
5756 val start = sut.startTimestamp()
@@ -71,7 +70,7 @@ class SQLiteSpanInstrumentationTest {
7170
7271 @Test
7372 fun `startTimestamp falls back to date provider when parent does not use SentryNanotimeDate` () {
74- val providerDate = SentryNanotimeDate (Date ( 2_000_000L ) , 200_000_000L )
73+ val providerDate = SentryNanotimeDate (2_000_000L , 200_000_000L )
7574 val parentSpan = mock<ISpan >()
7675 whenever(parentSpan.startDate).thenReturn(SentryLongDate (1_000_000_000_000_000L ))
7776 val options =
@@ -89,7 +88,7 @@ class SQLiteSpanInstrumentationTest {
8988
9089 @Test
9190 fun `startTimestamp falls back to date provider when no transaction is active` () {
92- val providerDate = SentryNanotimeDate (Date ( 2_000_000L ) , 200_000_000L )
91+ val providerDate = SentryNanotimeDate (2_000_000L , 200_000_000L )
9392 val options =
9493 SentryOptions ().apply {
9594 dsn = " https://key@sentry.io/proj"
0 commit comments