Skip to content

Commit cb21ec2

Browse files
authored
Fix config factory test (#123)
1 parent 5fc3c7f commit cb21ec2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

common/test/kotlin/com/couchbase/lite/ConfigFactoryTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class ConfigFactoryTest : BaseDbTest() {
121121
val target = testEndpoint
122122

123123
val collConfig1 = CollectionConfigurationFactory.newConfig(
124+
testDatabase.defaultCollection,
124125
channels = testChannels,
125126
conflictResolver = testResolver,
126127
documentIDs = testDocIds,
@@ -164,6 +165,7 @@ class ConfigFactoryTest : BaseDbTest() {
164165
@Test
165166
fun testReplConfigCollectionsWithoutDefault() {
166167
val collConfig1 = CollectionConfigurationFactory.newConfig(
168+
testCollection,
167169
channels = testChannels,
168170
conflictResolver = testResolver,
169171
documentIDs = testDocIds,
@@ -194,7 +196,7 @@ class ConfigFactoryTest : BaseDbTest() {
194196
val colls = config.collectionConfigs
195197
Assert.assertNotNull(colls)
196198
Assert.assertEquals(1, colls.size)
197-
Assert.assertTrue(colls.contains(testCollection))
199+
Assert.assertTrue(colls.map { it.collection }.contains(testCollection))
198200

199201
val collConfig2 = config.getCollectionConfiguration(testCollection)
200202

0 commit comments

Comments
 (0)