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

Release 1.0.0-alpha09 #144

Merged
merged 4 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Soil is available on `mavenCentral()`.

```kts
dependencies {
val soil = "1.0.0-alpha08"
val soil = "1.0.0-alpha09"

// Query
implementation("com.soil-kt.soil:query-core:$soil")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ kotlin.mpp.stability.nowarn=true
development=true
#Product
group=com.soil-kt.soil
version=1.0.0-alpha08
version=1.0.0-alpha09
androidCompileSdk=34
androidTargetSdk=34
androidMinSdk=23
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import kotlin.time.Duration
@OptIn(ExperimentalTestApi::class)
class AwaitTest : UnitTest() {

// TODO flaky test: CalledFromWrongThreadException
// https://issuetracker.google.com/issues?q=CalledFromWrongThreadException
@Test
fun testAwait() = runComposeUiTest {
val deferred = CompletableDeferred<String>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.runComposeUiTest
import androidx.compose.ui.test.waitUntilAtLeastOneExists
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.flow
import soil.query.SubscriptionId
Expand Down Expand Up @@ -57,7 +59,7 @@ class SubscriptionComposableTest : UnitTest() {
}
}

waitUntil { client.isIdleNow() }
waitUntilAtLeastOneExists(hasTestTag("subscription"))
onNodeWithTag("subscription").assertTextEquals("Hello, Soil!")
}

Expand All @@ -77,7 +79,7 @@ class SubscriptionComposableTest : UnitTest() {
}
}

waitUntil { client.isIdleNow() }
waitUntilAtLeastOneExists(hasTestTag("subscription"))
onNodeWithTag("subscription").assertTextEquals("HELLO, COMPOSE!")
}

Expand All @@ -100,7 +102,7 @@ class SubscriptionComposableTest : UnitTest() {
}
}

waitUntil { client.isIdleNow() }
waitUntilAtLeastOneExists(hasTestTag("subscription"))
onNodeWithTag("subscription").assertTextEquals("error")
}

Expand Down
Loading