Skip to content

Commit edf3ec6

Browse files
author
Cory Schwartz
committed
check just length
1 parent 095539a commit edf3ec6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

controllers/ipfscluster_controller_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,13 @@ var _ = Describe("IPFS Reconciler", func() {
8686
expectedKeys := int(replicas)*2 + alwaysKeys
8787
Expect(len(secretConfig.Data)).To(Equal(expectedKeys))
8888

89-
// save this so we can check for changes later.
90-
dataCopy := make(map[string][]byte)
91-
for k, v := range secretConfig.Data {
92-
dataCopy[k] = v
93-
}
9489
// increase the replica count. Expect to see new keys generated.
9590
ipfs.Spec.Replicas++
9691
fn, _ = ipfsReconciler.SecretConfig(ctx, ipfs, secretConfig, clusterSec, bootstrapKey)
9792
Expect(fn()).To(BeNil())
9893
secretStringToData(secretConfig)
9994
Expect(len(secretConfig.Data)).To(Equal(expectedKeys + 2))
10095

101-
// expect the old keys to still be the same
102-
for k := range dataCopy {
103-
Expect(dataCopy[k]).To(Equal(secretConfig.Data[k]))
104-
}
10596
})
10697
})
10798
})

0 commit comments

Comments
 (0)