Skip to content

Commit 02bb426

Browse files
adinauerclaude
andcommitted
test(core): Update Data Collection replacement coverage
Use the supported user information option to verify that SentryOptions replaces its Data Collection instance. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent bf005fd commit 02bb426

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sentry/src/test/java/io/sentry/SentryOptionsTest.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ class SentryOptionsTest {
5959
@Test
6060
fun `setting data collection replaces the default instance`() {
6161
val options = SentryOptions()
62-
val dataCollection = DataCollection().apply { setQueues(false) }
62+
val dataCollection = DataCollection().apply { setUserInfo(false) }
6363

6464
options.dataCollection = dataCollection
6565

6666
assertThat(options.dataCollection).isSameInstanceAs(dataCollection)
67-
assertThat(options.dataCollection.queues).isFalse()
67+
assertThat(options.dataCollection.userInfo).isFalse()
6868
}
6969

7070
@Test

0 commit comments

Comments
 (0)