Skip to content

Commit

Permalink
Fix a few issues with the describeSchedules test (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored May 30, 2024
1 parent ae6597f commit 0c8073e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ public void describeSchedules() {
.setMemo(Collections.singletonMap("memokey2", "memoval2"))
.build();
String scheduleId = UUID.randomUUID().toString();
RetryOptions retryOptions = RetryOptions.newBuilder().setMaximumAttempts(1).build();
RetryOptions retryOptions =
RetryOptions.newBuilder().setMaximumAttempts(1).validateBuildWithDefaults();
WorkflowOptions wfOptions =
WorkflowOptions.newBuilder()
.setWorkflowId("test")
Expand Down Expand Up @@ -375,7 +376,7 @@ public void describeSchedules() {
(EncodedValues) startWfAction.getOptions().getMemo().get("memokey1");
String memoValue = encodedMemo.get(0, String.class);
Assert.assertEquals("memoval1", memoValue);
Assert.assertEquals(startWfAction.getOptions().getRetryOptions(), retryOptions);
Assert.assertEquals(retryOptions, startWfAction.getOptions().getRetryOptions());
//
Assert.assertEquals(
ScheduleSpec.newBuilder(description.getSchedule().getSpec())
Expand Down

0 comments on commit 0c8073e

Please sign in to comment.