Skip to content
Snippets Groups Projects
Commit fa9a4f14 authored by Malte Bauch's avatar Malte Bauch
Browse files

added context which allows to interrupt

This change is needed to prevent that the stateManager goroutine is
running forever. Now it will finish after the change has been confirmed.

This is probably also the reason for the data race within the tests,
because it seems to be a read/write race for t.done from within the test
package. This is because the goroutine keeps running and triggers
(because of the ticker) a t.Logf for a test which is already finished.

TODO: A method should be added which allows to Cancel() a Change.

Addresses: #152
parent dd4c1457
Branches
No related tags found
Loading
Checking pipeline status
This commit is part of merge request !218. Comments created here will be created in the context of that merge request.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment