Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Speed up unnecessarily slow integration test
  • Loading branch information
onsi committed Sep 9, 2022
1 parent 6edd355 commit 6d3a90e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration/run_test.go
Expand Up @@ -5,6 +5,7 @@ import (
"os"
"regexp"
"runtime"
"sort"
"strings"

. "github.com/onsi/ginkgo/v2"
Expand Down Expand Up @@ -435,8 +436,11 @@ var _ = Describe("Running Specs", func() {
for i := 0; i < 2048; i++ {
expectedNames = append(expectedNames, fmt.Sprintf("%d", i))
}
Ω(report.Names()).Should(ConsistOf(expectedNames))

names := report.Names()
sort.Strings(names)
sort.Strings(expectedNames)
Ω(names).Should(Equal(expectedNames))
})
})
})

0 comments on commit 6d3a90e

Please sign in to comment.