Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.14 Half of Replicator Tests #116

Merged
merged 3 commits into from
Sep 1, 2022
Merged

8.14 Half of Replicator Tests #116

merged 3 commits into from
Sep 1, 2022

Conversation

LaurenNguyen14
Copy link
Contributor

No description provided.

Copy link
Contributor

@bmeike bmeike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggesting two minor improvements. Looks good, though.

@@ -78,6 +78,15 @@ open class BaseCollectionTest : BaseDbTest() {
assertEquals(n.toLong(), testCollection.count)
}

protected fun createDocsInCustomizedCollection(n: Int, col: Collection) {
for (i in 0 until n) {
val doc = MutableDocument(String.format(Locale.US, "%s_%s_doc_%03d", col.database.name, col.name, i))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to do this, in Kotlin. I think you probably copy/pasted it from somewhere. In Kotlin, all you need is: "${col.database.name}${col.name}${i}". Just be sure you do that everywhere!

@@ -78,6 +78,15 @@ open class BaseCollectionTest : BaseDbTest() {
assertEquals(n.toLong(), testCollection.count)
}

protected fun createDocsInCustomizedCollection(n: Int, col: Collection) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this just createDocsInCollection?

@LaurenNguyen14 LaurenNguyen14 merged commit 1fdee9c into master Sep 1, 2022
@LaurenNguyen14 LaurenNguyen14 deleted the feature/CBL-3545-1 branch September 1, 2022 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants