Skip to content

Commit

Permalink
fix for a flaky test
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Maslennikov <[email protected]>
  • Loading branch information
almaslennikov committed Nov 7, 2024
1 parent cef3714 commit e75390d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package controller

import (
"context"
"slices"
"sync"
"time"

Expand Down Expand Up @@ -58,7 +59,9 @@ func getMatchedDevicesFromStatus(ctx context.Context, name string, namespace str
return func() []string {
templateObj := &v1alpha1.NicConfigurationTemplate{}
Expect(client.Get(ctx, types.NamespacedName{Name: name, Namespace: namespace}, templateObj)).To(Succeed())
return templateObj.Status.NicDevices
devices := templateObj.Status.NicDevices
slices.Sort(devices)
return devices
}
}

Expand Down

0 comments on commit e75390d

Please sign in to comment.