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

Android tests are failing #122

Open
sejun2 opened this issue Feb 8, 2025 · 0 comments
Open

Android tests are failing #122

sejun2 opened this issue Feb 8, 2025 · 0 comments

Comments

@sejun2
Copy link

sejun2 commented Feb 8, 2025

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])
            },
        )
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant