Skip to content

Commit 4e2dacd

Browse files
committed
fix flaky test
1 parent ae9d3df commit 4e2dacd

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

core/src/test/kotlin/com/segment/analytics/kotlin/core/SettingsTests.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,7 @@ class SettingsTests {
4545
fun `checkSettings updates settings`() = runTest {
4646
val system = analytics.store.currentState(System::class)
4747
val curSettings = system?.settings
48-
assertEquals(
49-
Settings(
50-
integrations = buildJsonObject {
51-
put(
52-
"Segment.io",
53-
buildJsonObject { put("apiKey", "1vNgUqwJeCHmqgI9S1sOm9UHCyfYqbaQ") })
54-
},
55-
plan = emptyJsonObject,
56-
edgeFunction = emptyJsonObject,
57-
middlewareSettings = emptyJsonObject
58-
),
59-
curSettings
60-
)
48+
assertEquals(true, curSettings?.hasIntegrationSettings("Segment.io"))
6149
}
6250

6351
@Test

0 commit comments

Comments
 (0)