@@ -27,10 +27,10 @@ func TestNew(t *testing.T) {
27
27
// Test that initializing many package-global UUID sources concurrently never leads to any duplicate
28
28
// UUIDs being generated.
29
29
func TestGlobalSource (t * testing.T ) {
30
- // Create a slice of 1 ,000 sources and initialize them in 1 ,000 separate goroutines. The goal is
31
- // to emulate many separate Go driver processes starting at the same time and initializing the
32
- // uuid package at the same time.
33
- sources := make ([]* source , 1000 )
30
+ // Create a slice of 10 ,000 sources and initialize them in 10 ,000 separate goroutines. The goal
31
+ // is to emulate many separate Go driver processes starting at the same time and initializing
32
+ // the uuid package at the same time.
33
+ sources := make ([]* source , 10000 )
34
34
var wg sync.WaitGroup
35
35
for i := range sources {
36
36
wg .Add (1 )
@@ -41,9 +41,9 @@ func TestGlobalSource(t *testing.T) {
41
41
}
42
42
wg .Wait ()
43
43
44
- // Read 1,000 UUIDs from each source and assert that there is never a duplicate value, either
45
- // from the same source or from separate sources.
46
- const iterations = 1000
44
+ // Read 100 UUIDs from each source and assert that there is never a duplicate value, either from
45
+ // the same source or from separate sources.
46
+ const iterations = 100
47
47
uuids := make (map [UUID ]bool , len (sources )* iterations )
48
48
for i := 0 ; i < iterations ; i ++ {
49
49
for j , s := range sources {
0 commit comments