Skip to content

Commit 386389f

Browse files
committed
fix copypaste and cleanup
1 parent a27ea1d commit 386389f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

integration_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ func TestIntegration(t *testing.T) {
580580
n.Spec.PodCIDR = "10.0.0.1/24"
581581
// ignore due to already removed field
582582
}).withIgnoreVersions([]string{"v1.10"}),
583-
NewTestMatch("statefulset diff for volumeclaimtemplates",
583+
NewTestMatch("statefulset match for volumeclaimtemplates",
584584
&appsv1.StatefulSet{
585585
ObjectMeta: metav1.ObjectMeta{GenerateName: "test-", Namespace: "default"},
586586
Spec: appsv1.StatefulSetSpec{
@@ -596,7 +596,9 @@ func TestIntegration(t *testing.T) {
596596
},
597597
VolumeClaimTemplates: []v1.PersistentVolumeClaim{
598598
{
599-
ObjectMeta: metav1.ObjectMeta{Name: "vault-raft"},
599+
ObjectMeta: metav1.ObjectMeta{
600+
Name: "vault-raft",
601+
},
600602
Spec: v1.PersistentVolumeClaimSpec{
601603
AccessModes: []v1.PersistentVolumeAccessMode{v1.ReadWriteOnce},
602604
Resources: v1.ResourceRequirements{
@@ -612,9 +614,6 @@ func TestIntegration(t *testing.T) {
612614
},
613615
},
614616
},
615-
}).
616-
withLocalChange(func(i interface{}) {
617-
618617
}),
619618
}
620619
runAll(t, tests)

patch/patch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (p *PatchMaker) Calculate(currentObject, modifiedObject runtime.Object) (*P
4545

4646
current, _, err = DeleteNullInJson(current)
4747
if err != nil {
48-
return nil, emperror.Wrap(err, "Failed to delete null from modified object")
48+
return nil, emperror.Wrap(err, "Failed to delete null from current object")
4949
}
5050

5151
modified, err := json.Marshal(modifiedObject)

0 commit comments

Comments
 (0)