Skip to content

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.

3 participants