Skip to content

Commit

Permalink
Added dry run to preference requirement test
Browse files Browse the repository at this point in the history
Signed-off-by: Roni Kishner<[email protected]>
  • Loading branch information
RoniKishner committed Nov 27, 2024
1 parent 7cbf97e commit 8dcea6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functests/instancetype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var _ = Describe("Common instance types func tests", func() {
}

vm = randomVM(&instanceTypeMatcher, &v1.PreferenceMatcher{Name: preference.Name}, v1.RunStrategyHalted)
vm, err = virtClient.VirtualMachine(testNamespace).Create(context.Background(), vm, metav1.CreateOptions{})
vm, err = virtClient.VirtualMachine(testNamespace).Create(context.Background(), vm, metav1.CreateOptions{DryRun: []string{metav1.DryRunAll}})
Expect(err).ToNot(HaveOccurred())
}
})
Expand Down

0 comments on commit 8dcea6c

Please sign in to comment.