Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETCM-147 use explicitly triggered scheduler for SyncControllerSpec #916

Merged
merged 2 commits into from
Feb 10, 2021

Conversation

jvdp
Copy link
Contributor

@jvdp jvdp commented Feb 3, 2021

The actors used by SyncController use the scheduler to retry various actions and its tests rely on this behavior to trigger, which involves retrying over period of up to 10 or 30 seconds. By using an explicitly triggered scheduler we can instead advance the clock artificially and only a short time.

Because of the complexity of the actors and the different timeouts I had to find the time steps (100ms and 3000ms) by trial and error, unfortunately. If they are too high or too low the specs will fail. In addition, the speed up is only about 2-4x.

@jvdp jvdp force-pushed the feature/ETCM-147-improve-synccontrollerspec branch from ec7cdfa to 1e67007 Compare February 3, 2021 15:39
@jvdp jvdp force-pushed the feature/ETCM-147-improve-synccontrollerspec branch from c82150b to 04fc825 Compare February 9, 2021 15:00
@jvdp jvdp merged commit 427d8e8 into develop Feb 10, 2021
@jvdp jvdp deleted the feature/ETCM-147-improve-synccontrollerspec branch February 10, 2021 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants