我刚刚从Patrol 2.2.5切换到2.3.0,当我尝试运行测试时,我得到了这个错误:
Patrol (native): trying to configure() again in 1 second
Patrol (native): configure() started
Patrol (native): configure() failed
Patrol (native): configure() failed: (NativeAutomatorClientException: configure() failed with Invalid response: 500 kotlinx.serialization.SerializationException: Serializer for class 'ConfigureRequest' is not found.
Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.
at kotlinx.serialization.internal.Platform_commonKt.serializerNotRegistered(Platform.common.kt:91)
at kotlinx.serialization.internal.PlatformKt.platformSpecificSerializerNotRegistered(Platform.kt:28)
at kotlinx.serialization.SerializersKt__SerializersKt.serializer(Serializers.kt:134)
at kotlinx.serialization.SerializersKt.serializer(Unknown Source:1)
at pl.leancode.patrol.contracts.NativeAutomatorServer$router$2.invoke(NativeAutomatorServer.kt:211)
at pl.leancode.patrol.contracts.NativeAutomatorServer$router$2.invoke(NativeAutomatorServer.kt:57)
at pl.leancode.patrol.PatrolServerFiltersKt$catcher$1$1.invoke(PatrolServerFilters.kt:30)
at pl.leancode.patrol.PatrolServerFiltersKt$cat
Patrol (native): trying to configure() again in 1 second
有办法解决吗?
1条答案
按热度按时间vhipe2zx1#
这是Patrol中的一个bug,在Patrol 2.3.1中得到了修复。
https://github.com/leancodepl/patrol/pull/1782