Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailesh Jagannath Padave committed Nov 19, 2024
1 parent 29ac65c commit f807490
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public void testTaskDefInvalidEmail() {
taskDef.setName("test-task");
taskDef.setRetryCount(1);
taskDef.setTimeoutSeconds(1000);
taskDef.setTotalTimeoutSeconds(2000);
taskDef.setResponseTimeoutSeconds(1);

Set<ConstraintViolation<Object>> result = validator.validate(taskDef);
Expand All @@ -102,6 +103,7 @@ public void testTaskDefValidEmail() {
taskDef.setRetryCount(1);
taskDef.setTimeoutSeconds(1000);
taskDef.setResponseTimeoutSeconds(1);
taskDef.setTotalTimeoutSeconds(2000);
taskDef.setOwnerEmail("[email protected]");

Set<ConstraintViolation<Object>> result = validator.validate(taskDef);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void testDeepCopyTask() {
final Task task = new Task();
// In order to avoid forgetting putting inside the copy method the newly added fields check
// the number of declared fields.
final int expectedTaskFieldsNumber = 41;
final int expectedTaskFieldsNumber = 42;
final int declaredFieldsNumber = task.getClass().getDeclaredFields().length;

assertEquals(expectedTaskFieldsNumber, declaredFieldsNumber);
Expand Down Expand Up @@ -133,6 +133,7 @@ public void testDeepCopyTask() {
task.setIsolationGroupId("groupId");
task.setStartTime(12L);
task.setEndTime(20L);
task.setFirstStartTime(12L);
task.setScheduledTime(7L);
task.setRetried(false);
task.setReasonForIncompletion("");
Expand Down

0 comments on commit f807490

Please sign in to comment.