Skip to content

Commit 0c8073e

Browse files
Fix a few issues with the describeSchedules test (#2085)
1 parent ae6597f commit 0c8073e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

temporal-sdk/src/test/java/io/temporal/client/schedules/ScheduleTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ public void describeSchedules() {
302302
.setMemo(Collections.singletonMap("memokey2", "memoval2"))
303303
.build();
304304
String scheduleId = UUID.randomUUID().toString();
305-
RetryOptions retryOptions = RetryOptions.newBuilder().setMaximumAttempts(1).build();
305+
RetryOptions retryOptions =
306+
RetryOptions.newBuilder().setMaximumAttempts(1).validateBuildWithDefaults();
306307
WorkflowOptions wfOptions =
307308
WorkflowOptions.newBuilder()
308309
.setWorkflowId("test")
@@ -375,7 +376,7 @@ public void describeSchedules() {
375376
(EncodedValues) startWfAction.getOptions().getMemo().get("memokey1");
376377
String memoValue = encodedMemo.get(0, String.class);
377378
Assert.assertEquals("memoval1", memoValue);
378-
Assert.assertEquals(startWfAction.getOptions().getRetryOptions(), retryOptions);
379+
Assert.assertEquals(retryOptions, startWfAction.getOptions().getRetryOptions());
379380
//
380381
Assert.assertEquals(
381382
ScheduleSpec.newBuilder(description.getSchedule().getSpec())

0 commit comments

Comments
 (0)