Skip to content

Commit 3ed73d5

Browse files
committed
test(agent): pin lifecycle in reattach failure specs
1 parent 6a60ac3 commit 3ed73d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/agent/reconciler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ var _ = Describe("ImpVM Agent: Running — lazy reattach on agent restart", func
447447
Name: "tc-reattach-dead", Namespace: "default",
448448
Finalizers: []string{"imp/finalizer"},
449449
},
450-
Spec: impdevv1alpha1.ImpVMSpec{NodeName: testNode},
450+
Spec: impdevv1alpha1.ImpVMSpec{NodeName: testNode, Lifecycle: impdevv1alpha1.VMLifecyclePersistent},
451451
}
452452
Expect(k8sClient.Create(ctx, vm)).To(Succeed())
453453
DeferCleanup(func() { k8sClient.Delete(ctx, vm) }) //nolint:errcheck
@@ -477,7 +477,7 @@ var _ = Describe("ImpVM Agent: Running — lazy reattach on agent restart", func
477477
Name: "tc-reattach-nopid", Namespace: "default",
478478
Finalizers: []string{"imp/finalizer"},
479479
},
480-
Spec: impdevv1alpha1.ImpVMSpec{NodeName: testNode},
480+
Spec: impdevv1alpha1.ImpVMSpec{NodeName: testNode, Lifecycle: impdevv1alpha1.VMLifecyclePersistent},
481481
}
482482
Expect(k8sClient.Create(ctx, vm)).To(Succeed())
483483
DeferCleanup(func() { k8sClient.Delete(ctx, vm) }) //nolint:errcheck

0 commit comments

Comments
 (0)