Skip to content

Commit

Permalink
dag: fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGamba committed Oct 6, 2023
1 parent e1657d5 commit e1efe90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dag/dag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ func TestDagSerial(t *testing.T) {
generateFn := func(n int) getoptions.CommandFn {
return func(ctx context.Context, opt *getoptions.GetOpt, args []string) error {
for i := 0; i < 5; i++ {
t.Log(fmt.Sprintf("Task %d", n))
t.Logf("Task %d", n)
}
results = append(results, n)
return nil
Expand Down Expand Up @@ -704,6 +704,7 @@ func TestMaxParallel(t *testing.T) {
}
sm.Unlock()
workMutex.Lock()
time.Sleep(1 * time.Millisecond)
workMutex.Unlock()
sm.Lock()
currentConcurrency -= 1
Expand Down

0 comments on commit e1efe90

Please sign in to comment.