Add delay during federation fixture tear down
@@ -99,6 +99,11 @@ func (f *FederationFixture) TearDown(tl common.TestLogger) {
}
for _, fixture := range fixtures {
fixture.TearDown(tl)
+ // Blocking IO to give cluster controller go routine the opportunity to
+ // shut down after closing its stop channel before API server is shut
+ // down. This helps avoid spurious connection errors when the target
+ // URLs become unavailable in API server.
+ time.Sleep(100 * time.Millisecond)
}
}
