-
Notifications
You must be signed in to change notification settings - Fork 30
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
Change behavior of simulateRemotePods to use the Pods API #142
Conversation
@@ -13,7 +13,7 @@ val sttpVersion = "3.9.6" | |||
val calibanVersion = "2.8.1" | |||
val redis4catsVersion = "1.5.2" | |||
val redissonVersion = "3.27.1" | |||
val scalaKryoVersion = "1.0.2" | |||
val scalaKryoVersion = "1.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They fixed an issue with the serialization of Scala 3 enums.
@@ -212,6 +212,13 @@ lazy val commonSettings = Def.settings( | |||
"com.dimafeng" %% "testcontainers-scala-core" % testContainersVersion % Test | |||
), | |||
Test / fork := true, | |||
Test / javaOptions ++= Seq( | |||
// Kryo requires this with the recent versions of Java | |||
"--add-opens=java.base/java.util=ALL-UNNAMED", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to serialize Exception
which we do in tests.
stringClient.hSet(config.podsKey, pods.map { case (k, v) => k.toString -> v.version }).unit | ||
stringClient | ||
.hSet(config.podsKey, pods.map { case (k, v) => k.toString -> v.version }) | ||
.when(pods.nonEmpty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found that this was failing when saving an empty list.
Existing option
simulateRemotePods
was only forcing serialization of sent messages but not responses. Instead, it is now using the actualPods
API when sending to a local shard which means it's going to go through the whole transport.