mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-07-25 01:22:58 +00:00
`hasDeploymentSynced` asserts the exact order of the fake client's deployment actions, expecting the informer's initial `"list"` and `"watch"` to precede any actions caused by `Sync.WaitForCacheSync()` can return before the reflector issues its "watch" request, since the cache is considered synced once the initial "list" is processed. Wait for the `"watch"` action to be recorded before proceeding, since this function runs at the start of every Sync. Signed-off-by: Volkan Özçelik <volkan.ozcelik@broadcom.com>