Skip to content

Commit

Permalink
Merge pull request #44 from almaslennikov/flaky-test
Browse files Browse the repository at this point in the history
fix for a flaky test
  • Loading branch information
almaslennikov authored Nov 7, 2024
2 parents cef3714 + e75390d commit 59f7cc1
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 59f7cc1

Please sign in to comment.