@@ -167,8 +167,8 @@ func TestCopyToNamespace(t *testing.T) {
167167 UID : "uid" ,
168168 ResourceVersion : "42" ,
169169 Annotations : map [string ]string {
170- "$copyhash-nonstatus" : "hn" ,
171- "$copyhash-status" : "hs-2" ,
170+ "$copyhash-spec" : "hn" ,
171+ "$copyhash-status" : "hs-2" ,
172172 },
173173 },
174174 },
@@ -220,8 +220,8 @@ func TestCopyToNamespace(t *testing.T) {
220220 UID : "uid" ,
221221 ResourceVersion : "42" ,
222222 Annotations : map [string ]string {
223- "$copyhash-nonstatus" : "hn-2" ,
224- "$copyhash-status" : "hs-2" ,
223+ "$copyhash-spec" : "hn-2" ,
224+ "$copyhash-status" : "hs-2" ,
225225 },
226226 },
227227 },
@@ -280,8 +280,8 @@ func TestCopyToNamespace(t *testing.T) {
280280 Namespace : "to" ,
281281 UID : "uid" ,
282282 Annotations : map [string ]string {
283- "$copyhash-nonstatus" : "hn" ,
284- "$copyhash-status" : "hs" ,
283+ "$copyhash-spec" : "hn" ,
284+ "$copyhash-status" : "hs" ,
285285 },
286286 },
287287 },
@@ -301,9 +301,8 @@ func TestCopyToNamespace(t *testing.T) {
301301 client := fake .NewSimpleClientset ()
302302
303303 if tc .ExistingCopy != nil {
304- client = fake .NewSimpleClientset (& v1alpha1.ClusterServiceVersion {
305- ObjectMeta : tc .ExistingCopy .ObjectMeta ,
306- })
304+ client = fake .NewSimpleClientset (tc .ExistingCopy )
305+ v1alpha1lister .ClusterServiceVersionListerReturns (FakeClusterServiceVersionLister {tc .ExistingCopy })
307306 } else {
308307 v1alpha1lister .ClusterServiceVersionListerReturns (FakeClusterServiceVersionLister (nil ))
309308 }
0 commit comments