Skip to content

Commit

Permalink
Simplify new functional test annotation creation.
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Arnold <[email protected]>
  • Loading branch information
mrnold committed Dec 18, 2024
1 parent b260353 commit 625a9e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/datavolume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1199,10 +1199,7 @@ var _ = Describe("[vendor:[email protected]][level:component]DataVolume tests",
if !k8serrors.IsAlreadyExists(err) {
Expect(err).ToNot(HaveOccurred())
}
if dv.Annotations == nil {
dv.Annotations = make(map[string]string)
}
dv.Annotations[controller.AnnVddkExtraArgs] = extraArguments.Name
controller.AddAnnotation(dv, controller.AnnVddkExtraArgs, extraArguments.Name)
return dv
}

Expand Down

0 comments on commit 625a9e9

Please sign in to comment.