diff --git a/test/e2e/deployment.go b/test/e2e/deployment.go index 4d9ce2b94c2..59ad47a9bf3 100644 --- a/test/e2e/deployment.go +++ b/test/e2e/deployment.go @@ -127,6 +127,7 @@ func checkDeploymentRevision(c clientset.Interface, ns, deploymentName, revision // Check revision of the new replica set of this deployment newRS, err := deploymentutil.GetNewReplicaSet(deployment, c) Expect(err).NotTo(HaveOccurred()) + Expect(newRS).NotTo(Equal(nil)) Expect(newRS.Annotations).NotTo(Equal(nil)) Expect(newRS.Annotations[deploymentutil.RevisionAnnotation]).Should(Equal(revision)) // Check revision of This deployment