Skip to content

Commit 9c9c831

Browse files
adinauerlcian
andauthored
Apply suggestions from code review
Co-authored-by: Lorenzo Cian <lorenzo.cian@sentry.io>
1 parent b795ac7 commit 9c9c831

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sentry/src/test/java/io/sentry/TracesSamplerTest.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,6 @@ class TracesSamplerTest {
422422

423423
@Test
424424
fun `attributes can be accessed in callback`() {
425-
val exception = Exception("faulty TracesSamplerCallback")
426425
var attributeValue: Any? = null
427426
val sampler = fixture.getSut(
428427
tracesSamplerCallback = { samplingContext ->
@@ -439,7 +438,6 @@ class TracesSamplerTest {
439438

440439
@Test
441440
fun `non existing attribute returns null in callback`() {
442-
val exception = Exception("faulty TracesSamplerCallback")
443441
var attributeValue: Any? = null
444442
val sampler = fixture.getSut(
445443
tracesSamplerCallback = { samplingContext ->
@@ -456,7 +454,6 @@ class TracesSamplerTest {
456454

457455
@Test
458456
fun `null attributes return null`() {
459-
val exception = Exception("faulty TracesSamplerCallback")
460457
var attributeValue: Any? = null
461458
val sampler = fixture.getSut(
462459
tracesSamplerCallback = { samplingContext ->

0 commit comments

Comments
 (0)