Skip to content

[RKOTLIN-1091] Decouple authentication errors from server error messages #235

[RKOTLIN-1091] Decouple authentication errors from server error messages

[RKOTLIN-1091] Decouple authentication errors from server error messages #235

GitHub Actions / Unit Test Results - Sync JVM Linux failed May 23, 2024 in 0s

534 passed, 3 failed and 23 skipped

Tests failed

Report Passed Failed Skipped Time
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.ApiKeyAuthTests.xml 18✅ 1⚪ 24s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.AppConfigurationTests.xml 27✅ 1s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.AppTests.xml 18✅ 5⚪ 32s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.AsymmetricSyncTests.xml 11✅ 17s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.CredentialsTests.xml 5✅ 6s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.EmailPasswordAuthWithAutoConfirmTests.xml 16✅ 4⚪ 10s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.EmailPasswordAuthWithCustomFunctionTests.xml 5✅ 6s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.EmailPasswordAuthWithEmailConfirmTests.xml 2✅ 4s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.FlexibleSyncConfigurationTests.xml 14✅ 1⚪ 21s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.FlexibleSyncIntegrationTests.xml 7✅ 16s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.FunctionsTests.xml 14✅ 27s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.GeoSpatialTests.xml 5✅ 11s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.HttpLogObfuscatorTests.xml 8✅ 15s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.internal.KtorNetworkTransportTest.xml 3✅ 1⚪ 8s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.internal.RealmSyncUtilsTest.xml 8✅ 2ms
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.internal.SyncConnectionParamsTests.xml 1✅ 0ms
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoClientTests.xml 7✅ 8s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoCollectionFromClientTests.xml 55✅ 136s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoCollectionFromDatabaseTests.xml 54✅ 135s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoDatabaseTests.xml 5✅ 6s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoDBSerializerTests.xml 9✅ 8ms
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.MutableSubscriptionSetTests.xml 20✅ 1⚪ 25s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.nonlatin.NonLatinTests.xml 1✅ 1s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.ProgressListenerTests.xml 9✅ 57s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.serializer.BsonEncoderTests.xml 12✅ 11ms
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SubscriptionExtensionsTests.xml 16✅ 34s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SubscriptionSetTests.xml 19✅ 27s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SubscriptionTests.xml 6✅ 6s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests.xml 32✅ 62s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncClientTests.xml 7✅ 6s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncConfigTests.xml 37✅ 1⚪ 30s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncedRealmTests.xml 26✅ 5⚪ 64s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncSessionTests.xml 19✅ 3⚪ 18s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.UserProfileTests.xml 3✅ 1s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.UserTests.xml 29✅ 3❌ 29s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.compiler.AsymmetricObjectTests.xml 5✅ 7s
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.jvm.FlexibleSyncSchemaTests.xml 1✅ 4ms
./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.jvm.RealmTests.xml 1⚪ 0ms

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.ApiKeyAuthTests.xml

19 tests were completed in 24s with 18 passed, 0 failed and 1 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.AppConfigurationTests.xml

27 tests were completed in 1s with 27 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.AppTests.xml

23 tests were completed in 32s with 18 passed, 0 failed and 5 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.AsymmetricSyncTests.xml

11 tests were completed in 17s with 11 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.CredentialsTests.xml

5 tests were completed in 6s with 5 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.EmailPasswordAuthWithAutoConfirmTests.xml

20 tests were completed in 10s with 16 passed, 0 failed and 4 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.EmailPasswordAuthWithCustomFunctionTests.xml

5 tests were completed in 6s with 5 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.EmailPasswordAuthWithEmailConfirmTests.xml

2 tests were completed in 4s with 2 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.FlexibleSyncConfigurationTests.xml

15 tests were completed in 21s with 14 passed, 0 failed and 1 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.FlexibleSyncIntegrationTests.xml

7 tests were completed in 16s with 7 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.FunctionsTests.xml

14 tests were completed in 27s with 14 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.GeoSpatialTests.xml

5 tests were completed in 11s with 5 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.HttpLogObfuscatorTests.xml

8 tests were completed in 15s with 8 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.internal.KtorNetworkTransportTest.xml

4 tests were completed in 8s with 3 passed, 0 failed and 1 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.internal.RealmSyncUtilsTest.xml

8 tests were completed in 2ms with 8 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.internal.SyncConnectionParamsTests.xml

1 tests were completed in 0ms with 1 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoClientTests.xml

7 tests were completed in 8s with 7 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoCollectionFromClientTests.xml

55 tests were completed in 136s with 55 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoCollectionFromDatabaseTests.xml

54 tests were completed in 135s with 54 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoDatabaseTests.xml

5 tests were completed in 6s with 5 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.mongo.MongoDBSerializerTests.xml

9 tests were completed in 8ms with 9 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.MutableSubscriptionSetTests.xml

21 tests were completed in 25s with 20 passed, 0 failed and 1 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.nonlatin.NonLatinTests.xml

1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.ProgressListenerTests.xml

9 tests were completed in 57s with 9 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.serializer.BsonEncoderTests.xml

12 tests were completed in 11ms with 12 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SubscriptionExtensionsTests.xml

16 tests were completed in 34s with 16 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SubscriptionSetTests.xml

19 tests were completed in 27s with 19 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SubscriptionTests.xml

6 tests were completed in 6s with 6 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncClientResetIntegrationTests.xml

32 tests were completed in 62s with 32 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncClientTests.xml

7 tests were completed in 6s with 7 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncConfigTests.xml

38 tests were completed in 30s with 37 passed, 0 failed and 1 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncedRealmTests.xml

31 tests were completed in 64s with 26 passed, 0 failed and 5 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.SyncSessionTests.xml

22 tests were completed in 18s with 19 passed, 0 failed and 3 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.UserProfileTests.xml

3 tests were completed in 1s with 3 passed, 0 failed and 0 skipped.

❌ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.UserTests.xml

32 tests were completed in 29s with 29 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
io.realm.kotlin.test.mongodb.common.UserTests 29✅ 3❌ 29s

❌ io.realm.kotlin.test.mongodb.common.UserTests

✅ repeatedLogInAndOut[jvm]
✅ mongoClient_throwsOnLoggedOutUser[jvm]
✅ customData_refresh[jvm]
✅ getIdentities[jvm]
✅ mongoClient_unknownClient[jvm]
✅ getAccessToken[jvm]
✅ mongoClient_customSerializer[jvm]
✅ removeUser_throwsIfUserAlreadyRemoved[jvm]
✅ mongoClient_defaultSerializer[jvm]
✅ equals[jvm]
✅ getApp[jvm]
✅ deleteUser_loggedOutThrows[jvm]
✅ getDeviceId[jvm]
✅ logOut[jvm]
✅ logOutUserInstanceImpactsCurrentUser[jvm]
✅ deleteUser_throwsIfUserAlreadyDeleted[jvm]
✅ getId[jvm]
✅ logOutCurrentUserImpactsOtherInstances[jvm]
✅ customData_refreshByLogout[jvm]
❌ linkCredentials_twoEmailAccountsThrows[jvm]
	java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4998e9ccf75a719966
✅ getState_anonymousUser[jvm]
✅ linkCredentials_addingAnonymousToEmailThrows[jvm]
✅ hashCode_user[jvm]
✅ removeUser[jvm]
❌ linkCredentials_linkingWithItselfThrows[jvm]
	java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InvalidSession(4301)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4d98e9ccf75a719a86
✅ getProviderType[jvm]
✅ isLoggedIn[jvm]
❌ linkCredentials_emailPassword[jvm]
	java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f5098e9ccf75a719b3e
✅ getState_emailUser[jvm]
✅ getRefreshToken[jvm]
✅ deleteUser[jvm]
✅ customData_initiallyNull[jvm]

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.compiler.AsymmetricObjectTests.xml

5 tests were completed in 7s with 5 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.jvm.FlexibleSyncSchemaTests.xml

1 tests were completed in 4ms with 1 passed, 0 failed and 0 skipped.

✅ ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.jvm.RealmTests.xml

1 tests were completed in 0ms with 0 passed, 0 failed and 1 skipped.

Annotations

Check failure on line 481 in packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/UserTests.kt

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results - Sync JVM Linux

io.realm.kotlin.test.mongodb.common.UserTests ► linkCredentials_twoEmailAccountsThrows[jvm]

Failed test found in:
  ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.UserTests.xml
Error:
  java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4998e9ccf75a719966
Raw output
java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4998e9ccf75a719966
	at org.junit.Assert.fail(Assert.java:89)
	at kotlin.test.junit.JUnitAsserter.fail(JUnitSupport.kt:64)
	at kotlin.test.AssertionsKt__AssertionsImplKt.checkResultIsFailure(AssertionsImpl.kt:30)
	at kotlin.test.AssertionsKt.checkResultIsFailure(Unknown Source)
	at io.realm.kotlin.test.mongodb.common.UserTests$linkCredentials_twoEmailAccountsThrows$1.invokeSuspend(UserTests.kt:481)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking(CoroutineUtilsSharedJvm.kt:22)
	at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking$default(CoroutineUtilsSharedJvm.kt:21)
	at io.realm.kotlin.test.mongodb.common.UserTests.linkCredentials_twoEmailAccountsThrows(UserTests.kt:473)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:108)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:57)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:39)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at jdk.internal.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4998e9ccf75a719966
	at app//io.realm.kotlin.mongodb.internal.RealmSyncUtilsKt.convertAppError(RealmSyncUtils.kt:180)
	at app//io.realm.kotlin.mongodb.internal.RealmSyncUtilsKt$channelResultCallback$1.onError(RealmSyncUtils.kt:63)
	at app//io.realm.kotlin.internal.interop.realmcJNI.complete_http_request(Native Method)
	at app//io.realm.kotlin.internal.interop.realmc.complete_http_request(realmc.java:1874)
	at app//io.realm.kotlin.internal.interop.sync.ResponseCallbackImpl.response(ResponseCallbackImpl.kt:26)
	at app//io.realm.kotlin.mongodb.internal.KtorNetworkTransport$sendRequest$1.invokeSuspend(KtorNetworkTransport.kt:121)
	at app//kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at app//kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at [email protected]/java.lang.Thread.run(Thread.java:829)

Check failure on line 515 in packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/UserTests.kt

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results - Sync JVM Linux

io.realm.kotlin.test.mongodb.common.UserTests ► linkCredentials_linkingWithItselfThrows[jvm]

Failed test found in:
  ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.UserTests.xml
Error:
  java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InvalidSession(4301)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4d98e9ccf75a719a86
Raw output
java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InvalidSession(4301)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4d98e9ccf75a719a86
	at org.junit.Assert.fail(Assert.java:89)
	at kotlin.test.junit.JUnitAsserter.fail(JUnitSupport.kt:64)
	at kotlin.test.AssertionsKt__AssertionsImplKt.checkResultIsFailure(AssertionsImpl.kt:30)
	at kotlin.test.AssertionsKt.checkResultIsFailure(Unknown Source)
	at io.realm.kotlin.test.mongodb.common.UserTests$linkCredentials_linkingWithItselfThrows$1.invokeSuspend(UserTests.kt:515)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking(CoroutineUtilsSharedJvm.kt:22)
	at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking$default(CoroutineUtilsSharedJvm.kt:21)
	at io.realm.kotlin.test.mongodb.common.UserTests.linkCredentials_linkingWithItselfThrows(UserTests.kt:508)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:108)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:57)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:39)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at jdk.internal.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InvalidSession(4301)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f4d98e9ccf75a719a86
	at app//io.realm.kotlin.mongodb.internal.RealmSyncUtilsKt.convertAppError(RealmSyncUtils.kt:187)
	at app//io.realm.kotlin.mongodb.internal.RealmSyncUtilsKt$channelResultCallback$1.onError(RealmSyncUtils.kt:63)
	at app//io.realm.kotlin.internal.interop.realmcJNI.complete_http_request(Native Method)
	at app//io.realm.kotlin.internal.interop.realmc.complete_http_request(realmc.java:1874)
	at app//io.realm.kotlin.internal.interop.sync.ResponseCallbackImpl.response(ResponseCallbackImpl.kt:26)
	at app//io.realm.kotlin.mongodb.internal.KtorNetworkTransport$sendRequest$1.invokeSuspend(KtorNetworkTransport.kt:121)
	at app//kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at app//kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at [email protected]/java.lang.Thread.run(Thread.java:829)

Check failure on line 462 in packages/test-sync/src/commonTest/kotlin/io/realm/kotlin/test/mongodb/common/UserTests.kt

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results - Sync JVM Linux

io.realm.kotlin.test.mongodb.common.UserTests ► linkCredentials_emailPassword[jvm]

Failed test found in:
  ./packages/test-sync/build/test-results/jvmTest/TEST-io.realm.kotlin.test.mongodb.common.UserTests.xml
Error:
  java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f5098e9ccf75a719b3e
Raw output
java.lang.AssertionError: Expected an exception of class io.realm.kotlin.mongodb.exceptions.CredentialsCannotBeLinkedException to be thrown, but was io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f5098e9ccf75a719b3e
	at org.junit.Assert.fail(Assert.java:89)
	at kotlin.test.junit.JUnitAsserter.fail(JUnitSupport.kt:64)
	at kotlin.test.AssertionsKt__AssertionsImplKt.checkResultIsFailure(AssertionsImpl.kt:30)
	at kotlin.test.AssertionsKt.checkResultIsFailure(Unknown Source)
	at io.realm.kotlin.test.mongodb.common.UserTests$linkCredentials_emailPassword$1.invokeSuspend(UserTests.kt:462)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking(CoroutineUtilsSharedJvm.kt:22)
	at io.realm.kotlin.internal.platform.CoroutineUtilsSharedJvmKt.runBlocking$default(CoroutineUtilsSharedJvm.kt:21)
	at io.realm.kotlin.test.mongodb.common.UserTests.linkCredentials_emailPassword(UserTests.kt:445)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:108)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:57)
	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:39)
	at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:52)
	at jdk.internal.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: io.realm.kotlin.mongodb.exceptions.ServiceException: [Service][InternalServerError(4315)] unauthorized. Server log entry: http://52.91.245.93:57676/groups/664f0d3198e9ccf75a70ce41/apps/664f0d3298e9ccf75a70ce4f/logs?co_id=664f0f5098e9ccf75a719b3e
	at app//io.realm.kotlin.mongodb.internal.RealmSyncUtilsKt.convertAppError(RealmSyncUtils.kt:180)
	at app//io.realm.kotlin.mongodb.internal.RealmSyncUtilsKt$channelResultCallback$1.onError(RealmSyncUtils.kt:63)
	at app//io.realm.kotlin.internal.interop.realmcJNI.complete_http_request(Native Method)
	at app//io.realm.kotlin.internal.interop.realmc.complete_http_request(realmc.java:1874)
	at app//io.realm.kotlin.internal.interop.sync.ResponseCallbackImpl.response(ResponseCallbackImpl.kt:26)
	at app//io.realm.kotlin.mongodb.internal.KtorNetworkTransport$sendRequest$1.invokeSuspend(KtorNetworkTransport.kt:121)
	at app//kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at app//kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at [email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at [email protected]/java.lang.Thread.run(Thread.java:829)