• Jan Safranek's avatar
    Stabilize controller unit tests. · 011eac7c
    Jan Safranek authored
    Remove test "5-1", it's flaky as it depends on order of execution of
    goroutines. When the controller starts, existing claim is enqueued as
    "initial sync event" and a new volume is enqueued to separate goroutine.
    It is not deterministic which goroutine processes its events first and
    there is no way how to tell that the claim event was processed.
    
    Also, force resync of the controllers after the test to make sure all
    events are processed.
    011eac7c
controller_test.go 8.21 KB