We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c12fbe commit b2b4dc0Copy full SHA for b2b4dc0
model-client/src/jvmTest/kotlin/org/modelix/model/client2/RefreshTokenTest.kt
@@ -33,6 +33,7 @@ import org.modelix.model.oauth.IAuthRequestHandler
33
import kotlin.random.Random
34
import kotlin.test.Test
35
import kotlin.test.assertEquals
36
+import kotlin.test.assertTrue
37
38
@Serializable
39
private data class TokenResponse2(
@@ -276,7 +277,7 @@ class RefreshTokenTest {
276
277
invalidateAccessToken()
278
val actualBranches2 = modelClient.listBranches(RepositoryId(expectedRepoId))
279
assertEquals(expectedBranches, actualBranches2)
- assertEquals(3, nextTokenSuffix)
280
+ assertTrue(nextTokenSuffix >= 3, "No token refresh happened")
281
}
282
283
0 commit comments