Skip to content

Commit

Permalink
Fix workflow options equality (#1868)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quinn-With-Two-Ns authored Sep 26, 2023
1 parent 456da32 commit aa5cb41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ && compare(that.maxTaskQueueActivitiesPerSecond, maxTaskQueueActivitiesPerSecond
&& Objects.equals(stickyQueueScheduleToStartTimeout, that.stickyQueueScheduleToStartTimeout)
&& disableEagerExecution == that.disableEagerExecution
&& useBuildIdForVersioning == that.useBuildIdForVersioning
&& buildId.equals(that.buildId);
&& Objects.equals(that.buildId, buildId);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@ private void verifyBuild(WorkerOptions options) {
assertEquals(10, options.getMaxConcurrentActivityExecutionSize());
assertEquals(11, options.getMaxConcurrentLocalActivityExecutionSize());
}

@Test
public void verifyWorkerOptionsEquality() {
WorkerOptions w1 = WorkerOptions.newBuilder().build();
WorkerOptions w2 = WorkerOptions.newBuilder().build();
assertEquals(w1, w2);
}
}

0 comments on commit aa5cb41

Please sign in to comment.