Skip to content

Commit e6506ec

Browse files
author
Valeriy Khorunzhin
committed
refactoring
Signed-off-by: Valeriy Khorunzhin <[email protected]>
1 parent e31ea52 commit e6506ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/vm/configuration.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var _ = Describe("VirtualMachineConfiguration", func() {
5757
f.Before()
5858

5959
By("Environment preparation")
60-
t.GenerateConfigurationResources(restartApprovalMode)
60+
t.GenerateResources(restartApprovalMode)
6161
err := f.CreateWithDeferredDeletion(context.Background(), t.VM, t.VDRoot, t.VDBlank)
6262
Expect(err).NotTo(HaveOccurred())
6363

@@ -125,7 +125,7 @@ func NewConfigurationTest(f *framework.Framework) *configurationTest {
125125
}
126126
}
127127

128-
func (c *configurationTest) GenerateConfigurationResources(restartApprovalMode v1alpha2.RestartApprovalMode) {
128+
func (c *configurationTest) GenerateResources(restartApprovalMode v1alpha2.RestartApprovalMode) {
129129
c.VDRoot = vdbuilder.New(
130130
vdbuilder.WithName("vd-root"),
131131
vdbuilder.WithNamespace(c.Framework.Namespace().Name),
@@ -172,7 +172,7 @@ func (t *configurationTest) CheckRestartAwaitingChanges(vm *v1alpha2.VirtualMach
172172
return
173173
}
174174

175-
// Avoid race condition with need restart condition calculation
175+
// Avoid race conditions during the calculation of the "need restart" condition.
176176
Eventually(func(g Gomega) {
177177
err := t.Framework.Clients.GenericClient().Get(context.Background(), crclient.ObjectKeyFromObject(t.VM), t.VM)
178178
g.Expect(err).NotTo(HaveOccurred())

0 commit comments

Comments
 (0)