Skip to content

Commit f828d6c

Browse files
committed
Fix test
1 parent 9e08f10 commit f828d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/action/datastreams/lifecycle/ExplainDataStreamLifecycleResponseTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ private Response randomResponse() {
311311
);
312312
var failuresGlobalRetention = DataStreamGlobalRetention.create(
313313
randomBoolean() ? TimeValue.timeValueDays(randomIntBetween(1, 10)) : null,
314-
dataGlobalRetention.maxRetention()
314+
dataGlobalRetention == null ? null : dataGlobalRetention.maxRetention()
315315
);
316316
return new Response(
317317
List.of(

0 commit comments

Comments
 (0)