Skip to content

Commit 4583b92

Browse files
committed
fix tests
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
1 parent bc58d92 commit 4583b92

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

modules/nextflow/src/main/groovy/nextflow/util/SerializationHelper.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ class KryoHelper {
112112
kryo.addDefaultSerializer(GString, GStringSerializer)
113113
// map entry serializer
114114
kryo.addDefaultSerializer(Map.Entry, MapEntrySerializer)
115+
// register PathSerializer as default for all Path implementations not explicitly registered
116+
// (e.g. JimfsPath used in tests) to prevent Kryo's FieldSerializer from recursing into
117+
// internal fields that may contain non-serializable objects such as lambdas (Guava 33.4+)
118+
kryo.addDefaultSerializer(Path, PathSerializer)
115119

116120
return kryo
117121
}

modules/nf-commons/src/main/nextflow/plugin/HttpPluginRepository.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class HttpPluginRepository implements PrefetchUpdateRepository {
152152
}
153153
try {
154154
final ListDependenciesResponse decoded = encoder.decode(body)
155-
if( decoded.plugins == null ) {
155+
if( !decoded.plugins ) {
156156
throw new PluginRuntimeException("Failed to download plugin metadata: Failed to parse response body")
157157
}
158158
final result = new HashMap<String, PluginInfo>()

0 commit comments

Comments
 (0)