Skip to content

Commit 13a13f3

Browse files
committed
Remove duplicate queryFirstPage Predefined identifier test.
After the d2a71dd backport, the predefined queryFirstPage test now lives alongside the standard one in the rebuild-from-identifier region; the older copy added in 86d6549 still relied on the pre-d2a71dd9dc signature ('emptyList<Channel>().asCall()') and no longer compiles.
1 parent 280392d commit 13a13f3

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

  • stream-chat-android-state/src/test/java/io/getstream/chat/android/state/plugin/logic/querychannels/internal

stream-chat-android-state/src/test/java/io/getstream/chat/android/state/plugin/logic/querychannels/internal/QueryChannelsLogicTest.kt

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -479,38 +479,5 @@ internal class QueryChannelsLogicTest {
479479
verify(queryChannelsStateLogic).handleChatEvent(event2, dbChannel)
480480
}
481481

482-
@Test
483-
fun `queryFirstPage rebuilds a predefined-filter request from a Predefined identifier`() = runTest {
484-
// Given
485-
val predefinedIdentifier = QueryChannelsIdentifier.Predefined(
486-
name = "my-predefined",
487-
filterValues = mapOf("a" to 1),
488-
sortValues = mapOf("b" to 2),
489-
)
490-
val predefinedLogic = QueryChannelsLogic(
491-
identifier = predefinedIdentifier,
492-
client = client,
493-
queryChannelsStateLogic = queryChannelsStateLogic,
494-
queryChannelsDatabaseLogic = queryChannelsDatabaseLogic,
495-
)
496-
whenever(client.queryChannelsInternal(any()))
497-
.thenReturn(emptyList<Channel>().asCall())
498-
499-
// When
500-
predefinedLogic.queryFirstPage()
501-
502-
// Then
503-
val expectedRequest = QueryChannelsRequest(
504-
offset = 0,
505-
limit = 30,
506-
messageLimit = null,
507-
memberLimit = null,
508-
predefinedFilter = "my-predefined",
509-
filterValues = mapOf("a" to 1),
510-
sortValues = mapOf("b" to 2),
511-
)
512-
verify(client).queryChannelsInternal(expectedRequest)
513-
}
514-
515482
// endregion
516483
}

0 commit comments

Comments
 (0)