Andrey Smirnov 49e53b1473 fix: cluster with some subscriptions isn't empty
This addresses a pretty race case when cluster GC runs while the cluster
just got created without any affiliates, but with a subscription.

Client first watches cluster state, then adds an affiliate, so there
might be a case when GC runs and sees a fresh cluster without any
affiliates and GCes it.

This also fixes test instability.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2021-10-11 22:28:28 +03:00
..