From f5bd3bbaf331191c3f495fb2799bb1e8e6ade476 Mon Sep 17 00:00:00 2001 From: David Aghaian <16483722+daghaian@users.noreply.github.com> Date: Tue, 21 Mar 2023 16:53:21 -0700 Subject: [PATCH] Added setting of architecture in vmi spec explicitly to account for expectations of unit test architecture Signed-off-by: David Aghaian <16483722+daghaian@users.noreply.github.com> --- pkg/virt-controller/watch/vmi_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/virt-controller/watch/vmi_test.go b/pkg/virt-controller/watch/vmi_test.go index ef492bf8da55..587c8ae89c8c 100644 --- a/pkg/virt-controller/watch/vmi_test.go +++ b/pkg/virt-controller/watch/vmi_test.go @@ -2976,6 +2976,7 @@ var _ = Describe("VirtualMachineInstance watcher", func() { getVmiWithInvTsc := func() *virtv1.VirtualMachineInstance { vmi := NewPendingVirtualMachine("testvmi") + vmi.Spec.Architecture = "amd64" vmi.Spec.Domain.CPU = &v1.CPU{ Features: []virtv1.CPUFeature{ { @@ -2990,6 +2991,7 @@ var _ = Describe("VirtualMachineInstance watcher", func() { getVmiWithReenlightenment := func() *virtv1.VirtualMachineInstance { vmi := NewPendingVirtualMachine("testvmi") + vmi.Spec.Architecture = "amd64" vmi.Spec.Domain.Features = &v1.Features{ Hyperv: &v1.FeatureHyperv{ Reenlightenment: &v1.FeatureState{Enabled: pointer.Bool(true)},