Commit f71bc19c authored by zhoulin xie's avatar zhoulin xie

Fix fmt.Sprintf error message

parent e47b159c
...@@ -275,7 +275,7 @@ var _ = SIGDescribe("StatefulSet", func() { ...@@ -275,7 +275,7 @@ var _ = SIGDescribe("StatefulSet", func() {
Description: StatefulSet's RollingUpdate strategy MUST support the Partition parameter for canaries and phased rollouts. If a Pod is deleted while a rolling update is in progress, StatefulSet MUST restore the Pod without violating the Partition. This test does not depend on a preexisting default StorageClass or a dynamic provisioner. Description: StatefulSet's RollingUpdate strategy MUST support the Partition parameter for canaries and phased rollouts. If a Pod is deleted while a rolling update is in progress, StatefulSet MUST restore the Pod without violating the Partition. This test does not depend on a preexisting default StorageClass or a dynamic provisioner.
*/ */
framework.ConformanceIt("should perform canary updates and phased rolling updates of template modifications", func() { framework.ConformanceIt("should perform canary updates and phased rolling updates of template modifications", func() {
By("Creating a new StaefulSet") By("Creating a new StatefulSet")
ss := framework.NewStatefulSet("ss2", ns, headlessSvcName, 3, nil, nil, labels) ss := framework.NewStatefulSet("ss2", ns, headlessSvcName, 3, nil, nil, labels)
sst := framework.NewStatefulSetTester(c) sst := framework.NewStatefulSetTester(c)
sst.SetHttpProbe(ss) sst.SetHttpProbe(ss)
...@@ -475,7 +475,7 @@ var _ = SIGDescribe("StatefulSet", func() { ...@@ -475,7 +475,7 @@ var _ = SIGDescribe("StatefulSet", func() {
} }
} }
Expect(ss.Status.CurrentRevision).To(Equal(updateRevision), Expect(ss.Status.CurrentRevision).To(Equal(updateRevision),
fmt.Sprintf("StatefulSet %s/%s current revision %s does not equal update revison %s on update completion", fmt.Sprintf("StatefulSet %s/%s current revision %s does not equal update revision %s on update completion",
ss.Namespace, ss.Namespace,
ss.Name, ss.Name,
ss.Status.CurrentRevision, ss.Status.CurrentRevision,
......
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