Fix test.
This commit is contained in:
parent
ba49cfb07c
commit
52789cec8c
1 changed files with 2 additions and 8 deletions
|
|
@ -215,14 +215,7 @@ class PreferencesRootPresenterTest {
|
||||||
createPresenter(
|
createPresenter(
|
||||||
featureFlagService = FakeFeatureFlagService(
|
featureFlagService = FakeFeatureFlagService(
|
||||||
getAvailableFeaturesResult = { _, _ ->
|
getAvailableFeaturesResult = { _, _ ->
|
||||||
listOf(
|
emptyList()
|
||||||
FakeFeature(
|
|
||||||
key = "feature_1",
|
|
||||||
title = "Feature 1",
|
|
||||||
isInLabs = true,
|
|
||||||
isFinished = true,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
matrixClient = FakeMatrixClient(
|
matrixClient = FakeMatrixClient(
|
||||||
|
|
@ -230,6 +223,7 @@ class PreferencesRootPresenterTest {
|
||||||
accountManagementUrlResult = { Result.success(null) },
|
accountManagementUrlResult = { Result.success(null) },
|
||||||
),
|
),
|
||||||
).test {
|
).test {
|
||||||
|
skipItems(1)
|
||||||
assertThat(awaitItem().showLabsItem).isFalse()
|
assertThat(awaitItem().showLabsItem).isFalse()
|
||||||
cancelAndIgnoreRemainingEvents()
|
cancelAndIgnoreRemainingEvents()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue