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

Bump compose from 1.7.1 to 1.7.3 #826

Merged
merged 2 commits into from
Jan 1, 2025
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
12 changes: 10 additions & 2 deletions Realtime/src/commonTest/kotlin/RealtimeChannelTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ import io.github.jan.supabase.testing.assertPathIs
import io.github.jan.supabase.testing.pathAfterVersion
import io.github.jan.supabase.testing.toJsonElement
import io.ktor.client.engine.mock.respond
import io.ktor.util.encodeBase64
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.launch
import kotlinx.coroutines.test.runTest
import kotlinx.datetime.Clock
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.boolean
Expand All @@ -42,6 +44,12 @@ import kotlin.test.assertContentEquals
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith

val EXAMPLE_JWT = buildString {
append("test.")
append(buildJsonObject { put("exp", Clock.System.now().epochSeconds + 500) }.toString().encodeBase64())
append(".test")
}

class RealtimeChannelTest {

@Test
Expand Down Expand Up @@ -142,7 +150,7 @@ class RealtimeChannelTest {

@Test
fun testSendingPayloadWithAuthJWT() {
val expectedAuthToken = "valid.test.token"
val expectedAuthToken = EXAMPLE_JWT
runTest {
createTestClient(
wsHandler = { i, _ ->
Expand All @@ -165,7 +173,7 @@ class RealtimeChannelTest {

@Test
fun testSendingPayloadWithCustomJWT() {
val expectedAuthToken = "authToken"
val expectedAuthToken = EXAMPLE_JWT
runTest {
createTestClient(
wsHandler = { i, _ ->
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ moshi = "1.15.2"
jackson = "2.18.2"
browser = "1.8.0"
googleid = "1.1.1"
compose = "1.7.1"
compose = "1.7.3"
androidsvg = "1.4"
imageloader = "1.9.0"
coil2 = "2.7.0"
Expand Down
Loading