updated stuff
This commit is contained in:
@@ -465,7 +465,7 @@ func TestConcurrentGeneration(t *testing.T) {
|
||||
errors := make(chan error, numGoroutines)
|
||||
|
||||
// Generate states concurrently
|
||||
for i := 0; i < numGoroutines; i++ {
|
||||
for range numGoroutines {
|
||||
go func() {
|
||||
state, userAgentKey, err := GenerateState(cfg, data)
|
||||
if err != nil {
|
||||
@@ -486,7 +486,7 @@ func TestConcurrentGeneration(t *testing.T) {
|
||||
|
||||
// Collect results
|
||||
states := make(map[string]bool)
|
||||
for i := 0; i < numGoroutines; i++ {
|
||||
for range numGoroutines {
|
||||
select {
|
||||
case state := <-results:
|
||||
if states[state] {
|
||||
|
||||
Reference in New Issue
Block a user