After #118, leader election tests fails intermittently (Both in local and CI). Let's explore the possible causes of the race condition and how we could mitigate this.