Skip to content

Commit 0830065

Browse files
authored
fix: panic in feed integration test (#444)
1 parent 7e56370 commit 0830065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/check/feed/feed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func (c *Check) checkAvailability(ctx context.Context, cluster orchestration.Clu
8888
// and verifies that the updates are retrievable via another node.
8989
func (c *Check) feedCheck(ctx context.Context, cluster orchestration.Cluster, o Options) error {
9090
rnd := random.PseudoGenerator(time.Now().UnixNano())
91-
perm := rnd.Perm(cluster.Size())
9291
names := cluster.FullNodeNames()
92+
perm := rnd.Perm(len(names))
9393

9494
if len(names) < 2 {
9595
return fmt.Errorf("not enough nodes to run feed check")

0 commit comments

Comments
 (0)