Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
qu0b committed Feb 23, 2024
1 parent df5b9a5 commit b44ca20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var rootCmd = &cobra.Command{
}

if version {
log.Printf("Local build; Unknown version\n")
log.Print("Local build; Unknown version\n")
return
}

Expand Down
10 changes: 5 additions & 5 deletions pkg/coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Coordinator struct {
maxConcurrentTests int
}

func NewCoordinator(config *Config, log logrus.FieldLogger, metricsPort int, maxConcurrentTests int) *Coordinator {
func NewCoordinator(config *Config, log logrus.FieldLogger, metricsPort, maxConcurrentTests int) *Coordinator {
return &Coordinator{
log: logger.NewLogger(&logger.ScopeOptions{
Parent: log,
Expand Down Expand Up @@ -283,14 +283,14 @@ func (c *Coordinator) runTestExecutionLoop(ctx context.Context) {
c.testRegistryMutex.Unlock()

if nextTest != nil {

// run next test
semaphore <- true
go func(nextTest types.Test) {
testFunc := func(nextTest types.Test) {
defer func() { <-semaphore }()
c.runTest(ctx, nextTest)
}(nextTest)
}
semaphore <- true

go testFunc(nextTest)
} else {
// sleep and wait for queue notification
select {
Expand Down

0 comments on commit b44ca20

Please sign in to comment.