Skip to content

Commit

Permalink
e2e: fix comparing incompatible types
Browse files Browse the repository at this point in the history
This patch fixes comparing incompatible types,
profile.Spec.RealTimeKernel.Enabled == pointer.Bool(false)

Instead of using pointer.Bool, directly compare the boolean
value.

Signed-off-by: Niranjan M.R <mrniranjan@redhat.com>
  • Loading branch information
Niranjan M.R committed Feb 15, 2024
1 parent d7c3111 commit 74cd4a0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -84,7 +84,7 @@ var _ = Describe("[rfe_id:49062][workloadHints] Telco friendly workload specific
By("Modifying profile")
profile.Spec.WorkloadHints = nil

if profile.Spec.RealTimeKernel.Enabled == pointer.Bool(false) {
if *profile.Spec.RealTimeKernel.Enabled != true {
testutils.KnownIssueJira("OCPBUGS-28828")
}
profile.Spec.RealTimeKernel = &performancev2.RealTimeKernel{
Expand Down Expand Up @@ -141,7 +141,7 @@ var _ = Describe("[rfe_id:49062][workloadHints] Telco friendly workload specific
It("[test_id:50991][crit:high][vendor:cnf-qe@redhat.com][level:acceptance]should update kernel arguments and tuned accordingly", func() {
By("Modifying profile")

if profile.Spec.RealTimeKernel.Enabled == pointer.Bool(false) {
if *profile.Spec.RealTimeKernel.Enabled != true {
testutils.KnownIssueJira("OCPBUGS-28828")
}
profile.Spec.WorkloadHints = &performancev2.WorkloadHints{
Expand Down

0 comments on commit 74cd4a0

Please sign in to comment.