File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
temporal-sdk/src/test/java/io/temporal/client/schedules Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,8 @@ public void describeSchedules() {
302
302
.setMemo (Collections .singletonMap ("memokey2" , "memoval2" ))
303
303
.build ();
304
304
String scheduleId = UUID .randomUUID ().toString ();
305
- RetryOptions retryOptions = RetryOptions .newBuilder ().setMaximumAttempts (1 ).build ();
305
+ RetryOptions retryOptions =
306
+ RetryOptions .newBuilder ().setMaximumAttempts (1 ).validateBuildWithDefaults ();
306
307
WorkflowOptions wfOptions =
307
308
WorkflowOptions .newBuilder ()
308
309
.setWorkflowId ("test" )
@@ -375,7 +376,7 @@ public void describeSchedules() {
375
376
(EncodedValues ) startWfAction .getOptions ().getMemo ().get ("memokey1" );
376
377
String memoValue = encodedMemo .get (0 , String .class );
377
378
Assert .assertEquals ("memoval1" , memoValue );
378
- Assert .assertEquals (startWfAction .getOptions ().getRetryOptions (), retryOptions );
379
+ Assert .assertEquals (retryOptions , startWfAction .getOptions ().getRetryOptions ());
379
380
//
380
381
Assert .assertEquals (
381
382
ScheduleSpec .newBuilder (description .getSchedule ().getSpec ())
You can’t perform that action at this time.
0 commit comments