Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Vasilev <[email protected]>
  • Loading branch information
Omrigan committed Jun 27, 2024
1 parent a27e4e9 commit 675f6e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions neonvm/controllers/vm_controller_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,12 @@ func newTestParams(t *testing.T) *testParams {
scheme.AddKnownTypes(corev1.SchemeGroupVersion, &corev1.Pod{})

params := &testParams{
t: t,
ctx: ctx,
client: fake.NewClientBuilder().WithScheme(scheme).Build(),
t: t,
ctx: ctx,
client: fake.NewClientBuilder().
WithScheme(scheme).
WithStatusSubresource(&vmv1.VirtualMachine{}).
Build(),
//nolint:exhaustruct // This is a mock
mockRecorder: &mockRecorder{},
r: nil,
Expand Down

0 comments on commit 675f6e2

Please sign in to comment.