Commit 6b066ee1 authored by Dr. Stefan Schimanski's avatar Dr. Stefan Schimanski

e2e: handle nil ReplicaSet in checkDeploymentRevision

deploymentutil.GetNewReplicaSet is allowed to return nil.
parent e38c575a
...@@ -127,6 +127,7 @@ func checkDeploymentRevision(c clientset.Interface, ns, deploymentName, revision ...@@ -127,6 +127,7 @@ func checkDeploymentRevision(c clientset.Interface, ns, deploymentName, revision
// Check revision of the new replica set of this deployment // Check revision of the new replica set of this deployment
newRS, err := deploymentutil.GetNewReplicaSet(deployment, c) newRS, err := deploymentutil.GetNewReplicaSet(deployment, c)
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
Expect(newRS).NotTo(Equal(nil))
Expect(newRS.Annotations).NotTo(Equal(nil)) Expect(newRS.Annotations).NotTo(Equal(nil))
Expect(newRS.Annotations[deploymentutil.RevisionAnnotation]).Should(Equal(revision)) Expect(newRS.Annotations[deploymentutil.RevisionAnnotation]).Should(Equal(revision))
// Check revision of This deployment // Check revision of This deployment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment