Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gthea committed Dec 2, 2024
1 parent 4532d4a commit fb3d56f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void setAttributeLaunchesAttributeUpdateTaskIfValueIsValid() {
attributeClient.setAttribute(name, attribute);

verify(attributeTaskFactory).createAttributeUpdateTask(persistentAttributesStorage, attributeMap);
verify(splitTaskExecutor).submit(updateAttributesInPersistentStorageTask, null);
verify(splitTaskExecutor).schedule(updateAttributesInPersistentStorageTask, 5L, null);
}

@Test
Expand Down Expand Up @@ -170,7 +170,7 @@ public void setAttributesLaunchesAttributeUpdateTaskIfValuesAreValid() {
attributeClient.setAttributes(attributeMap);

verify(attributeTaskFactory).createAttributeUpdateTask(persistentAttributesStorage, attributeMap);
verify(splitTaskExecutor).submit(updateAttributesInPersistentStorageTask, null);
verify(splitTaskExecutor).schedule(updateAttributesInPersistentStorageTask, 5L, null);
}

@Test
Expand Down Expand Up @@ -225,7 +225,7 @@ public void clearLaunchesAttributeClearTask() {
attributeClient.clearAttributes();

verify(attributeTaskFactory).createAttributeClearTask(persistentAttributesStorage);
verify(splitTaskExecutor).submit(clearAttributesInPersistentStorageTask, null);
verify(splitTaskExecutor).schedule(clearAttributesInPersistentStorageTask, 5L, null);
}

@Test
Expand All @@ -250,7 +250,7 @@ public void removeLaunchesAttributeUpdateTask() {
attributeClient.removeAttribute("key");

verify(attributeTaskFactory).createAttributeUpdateTask(persistentAttributesStorage, attributeMap);
verify(splitTaskExecutor).submit(updateAttributesInPersistentStorageTask, null);
verify(splitTaskExecutor).schedule(updateAttributesInPersistentStorageTask, 5L, null);
}

private Map<String, Object> getDefaultValues() {
Expand Down

0 comments on commit fb3d56f

Please sign in to comment.