Skip to content

Commit

Permalink
vmservice/vm_test: TestReconcileVM_EverythingReady: use context.Backg…
Browse files Browse the repository at this point in the history
…round()
  • Loading branch information
wikkyk committed Mar 13, 2024
1 parent cb76c4f commit aeddc98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/vmservice/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestReconcileVM_EverythingReady(t *testing.T) {
machineScope.ProxmoxMachine.Status.IPAddresses = map[string]infrav1alpha1.IPAddress{infrav1alpha1.DefaultNetworkDevice: {IPV4: "10.10.10.10"}}
machineScope.ProxmoxMachine.Status.BootstrapDataProvided = ptr.To(true)

proxmoxClient.EXPECT().GetVM(context.TODO(), "node1", int64(123)).Return(vm, nil).Once()
proxmoxClient.EXPECT().GetVM(context.Background(), "node1", int64(123)).Return(vm, nil).Once()

result, err := ReconcileVM(context.Background(), machineScope)
require.NoError(t, err)
Expand Down

0 comments on commit aeddc98

Please sign in to comment.