Skip to content

Android tests are failing #122

@sejun2

Description

@sejun2

The tests that assert the pre-populated message count are failing due to the deletion logic in the 'Add second message' feature, which results in only one pre-populated message.

The expected message count is 2, but actual message count is 1.

fun SupportSQLiteDatabase.populateInitialData() { 
...

// Add second message  <<< This one is removed.
        insert(
            table = "Message",
            conflictAlgorithm = SQLiteDatabase.CONFLICT_NONE,
            values = ContentValues().apply {
                put("id", (index * 2).toLong() + 1L)
                put("chatId", chatIds[index])
                put("senderId", contact.id)
                put("text", "I will reply in 5 seconds")
                put("timestamp", now + chatIds[index])
            },
        )
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions