mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
chore(commitserver): Fix modernize linter (#26327)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ func TestAddNoteConcurrentStaggered(t *testing.T) {
|
|||||||
|
|
||||||
// Create separate clones for concurrent operations
|
// Create separate clones for concurrent operations
|
||||||
cloneClients := make([]git.Client, 3)
|
cloneClients := make([]git.Client, 3)
|
||||||
for i := 0; i < 3; i++ {
|
for i := range 3 {
|
||||||
cloneClients[i] = getClientForClone(t, remotePath)
|
cloneClients[i] = getClientForClone(t, remotePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ func TestAddNoteConcurrentStaggered(t *testing.T) {
|
|||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
errors := make([]error, 3)
|
errors := make([]error, 3)
|
||||||
|
|
||||||
for i := 0; i < 3; i++ {
|
for i := range 3 {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(idx int) {
|
go func(idx int) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
@@ -81,7 +81,7 @@ func TestAddNoteConcurrentSimultaneous(t *testing.T) {
|
|||||||
|
|
||||||
// Create separate clones for concurrent operations
|
// Create separate clones for concurrent operations
|
||||||
cloneClients := make([]git.Client, 3)
|
cloneClients := make([]git.Client, 3)
|
||||||
for i := 0; i < 3; i++ {
|
for i := range 3 {
|
||||||
cloneClients[i] = getClientForClone(t, remotePath)
|
cloneClients[i] = getClientForClone(t, remotePath)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ func TestAddNoteConcurrentSimultaneous(t *testing.T) {
|
|||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
startChan := make(chan struct{})
|
startChan := make(chan struct{})
|
||||||
|
|
||||||
for i := 0; i < 3; i++ {
|
for i := range 3 {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(idx int) {
|
go func(idx int) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
|
|||||||
Reference in New Issue
Block a user