Skip to content

Commit

Permalink
Fixed the failing test
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Aug 22, 2024
1 parent e8456c2 commit e8f7811
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/graph/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func TestRandomGraphDependenciesWithControlledCircles(t *testing.T) {
}

// Set random dependencies, allowing controlled circles
r := rand.New(rand.NewSource(time.Now().UnixNano()))
cycleProbability := 0.01 // 1% chance to create a cycle
for i := 0; i < n; i++ {
possibleDeps := rand.Perm(n - i) // Generate a random permutation of indices [0, min(90, n-i)-1]
Expand Down Expand Up @@ -147,9 +146,6 @@ func TestRandomGraphDependenciesNoCircles(t *testing.T) {
nodes[i] = node
}

// Set random dependencies, ensuring no duplicates and no backward dependencies
r := rand.New(rand.NewSource(time.Now().UnixNano()))

m := map[int][]int{}

for i := 0; i < n; i++ {
Expand Down

0 comments on commit e8f7811

Please sign in to comment.