UT: Increase unit test coverage of pkg/bootstrap (#101)

Signed-off-by: charlie <qianglin98@qq.com>
This commit is contained in:
charlie
2023-01-14 14:50:15 +08:00
committed by GitHub
parent 926f858a13
commit 616b37a268
5 changed files with 76 additions and 7 deletions

View File

@@ -61,6 +61,7 @@ func NewFakeClient(objects ...runtime.Object) Client {
}
c.higress = higressfake.NewSimpleClientset()
c.higressInformer = higressinformer.NewSharedInformerFactoryWithOptions(c.higress, resyncInterval)
c.informerWatchesPending = atomic.NewInt32(0)
// https://github.com/kubernetes/kubernetes/issues/95372
// There is a race condition in the client fakes, where events that happen between the List and Watch