From 9b130ef1422b1f7eeca264f013931614c6f82a6b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 1 Jan 2025 15:48:36 +0100 Subject: [PATCH] Bump compose from 1.7.1 to 1.7.3 (#826) * Bump compose from 1.7.1 to 1.7.3 Bumps `compose` from 1.7.1 to 1.7.3. Updates `org.jetbrains.compose:compose-gradle-plugin` from 1.7.1 to 1.7.3 - [Release notes](https://github.com/JetBrains/compose-jb/releases) - [Changelog](https://github.com/JetBrains/compose-multiplatform/blob/master/CHANGELOG.md) - [Commits](https://github.com/JetBrains/compose-jb/compare/v1.7.1...v1.7.3) Updates `org.jetbrains.compose` from 1.7.1 to 1.7.3 - [Release notes](https://github.com/JetBrains/compose-jb/releases) - [Changelog](https://github.com/JetBrains/compose-multiplatform/blob/master/CHANGELOG.md) - [Commits](https://github.com/JetBrains/compose-jb/compare/v1.7.1...v1.7.3) --- updated-dependencies: - dependency-name: org.jetbrains.compose:compose-gradle-plugin dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.jetbrains.compose dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Actually fix tests --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jan Tennert --- .../src/commonTest/kotlin/RealtimeChannelTest.kt | 12 ++++++++++-- gradle/libs.versions.toml | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Realtime/src/commonTest/kotlin/RealtimeChannelTest.kt b/Realtime/src/commonTest/kotlin/RealtimeChannelTest.kt index 68cc2b94..cbbcf6d4 100644 --- a/Realtime/src/commonTest/kotlin/RealtimeChannelTest.kt +++ b/Realtime/src/commonTest/kotlin/RealtimeChannelTest.kt @@ -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 @@ -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 @@ -142,7 +150,7 @@ class RealtimeChannelTest { @Test fun testSendingPayloadWithAuthJWT() { - val expectedAuthToken = "valid.test.token" + val expectedAuthToken = EXAMPLE_JWT runTest { createTestClient( wsHandler = { i, _ -> @@ -165,7 +173,7 @@ class RealtimeChannelTest { @Test fun testSendingPayloadWithCustomJWT() { - val expectedAuthToken = "authToken" + val expectedAuthToken = EXAMPLE_JWT runTest { createTestClient( wsHandler = { i, _ -> diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b50e8096..ca97392d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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"