@@ -885,7 +885,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
885885 })
886886 Describe ("as an Informer" , func () {
887887 Context ("with structured objects" , func () {
888- It ("should be able to get informer for the object" , func (done Done ) {
888+ It ("should be able to get informer for the object" , func () {
889889 By ("getting a shared index informer for a pod" )
890890 pod := & corev1.Pod {
891891 ObjectMeta : metav1.ObjectMeta {
@@ -921,9 +921,8 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
921921
922922 By ("verifying the object is received on the channel" )
923923 Eventually (out ).Should (Receive (Equal (pod )))
924- close (done )
925924 })
926- It ("should be able to get an informer by group/version/kind" , func (done Done ) {
925+ It ("should be able to get an informer by group/version/kind" , func () {
927926 By ("getting an shared index informer for gvk = core/v1/pod" )
928927 gvk := schema.GroupVersionKind {Group : "" , Version : "v1" , Kind : "Pod" }
929928 sii , err := informerCache .GetInformerForKind (context .TODO (), gvk )
@@ -960,7 +959,6 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
960959
961960 By ("verifying the object is received on the channel" )
962961 Eventually (out ).Should (Receive (Equal (pod )))
963- close (done )
964962 })
965963 It ("should be able to index an object field then retrieve objects by that field" , func () {
966964 By ("creating the cache" )
@@ -1030,7 +1028,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
10301028 })
10311029 })
10321030 Context ("with unstructured objects" , func () {
1033- It ("should be able to get informer for the object" , func (done Done ) {
1031+ It ("should be able to get informer for the object" , func () {
10341032 By ("getting a shared index informer for a pod" )
10351033
10361034 pod := & unstructured.Unstructured {
@@ -1072,7 +1070,6 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
10721070
10731071 By ("verifying the object is received on the channel" )
10741072 Eventually (out ).Should (Receive (Equal (pod )))
1075- close (done )
10761073 }, 3 )
10771074
10781075 It ("should be able to index an object field then retrieve objects by that field" , func () {
@@ -1145,7 +1142,7 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
11451142 })
11461143 })
11471144 Context ("with metadata-only objects" , func () {
1148- It ("should be able to get informer for the object" , func (done Done ) {
1145+ It ("should be able to get informer for the object" , func () {
11491146 By ("getting a shared index informer for a pod" )
11501147
11511148 pod := & corev1.Pod {
@@ -1193,7 +1190,6 @@ func CacheTest(createCacheFunc func(config *rest.Config, opts cache.Options) (ca
11931190
11941191 By ("verifying the object's metadata is received on the channel" )
11951192 Eventually (out ).Should (Receive (Equal (podMeta )))
1196- close (done )
11971193 }, 3 )
11981194
11991195 It ("should be able to index an object field then retrieve objects by that field" , func () {
0 commit comments