Skip to content

Commit

Permalink
fix other minor preexisting lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bgentry committed Apr 28, 2024
1 parent 48aa0d7 commit 6236fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/maintenance/job_scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ func TestJobScheduler(t *testing.T) {
notificationsByQueue map[string]int
}

setup := func(t *testing.T, ex riverdriver.Executor) (*JobScheduler, *testBundle) {
setup := func(t *testing.T, exec riverdriver.Executor) (*JobScheduler, *testBundle) {
t.Helper()

archetype := riverinternaltest.BaseServiceArchetype(t)

bundle := &testBundle{
exec: ex,
exec: exec,
notificationsByQueue: make(map[string]int),
}

Expand Down
3 changes: 2 additions & 1 deletion internal/maintenance/periodic_job_enqueuer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package maintenance

import (
"context"
"errors"
"fmt"
"sync"
"testing"
Expand Down Expand Up @@ -568,7 +569,7 @@ func TestPeriodicJobEnqueuer(t *testing.T) {
})

svc.Config.NotifyInsert = func(ctx context.Context, execTx riverdriver.ExecutorTx, queues []string) error {
return fmt.Errorf("test error")
return errors.New("test error")
}

startService(t, svc)
Expand Down

0 comments on commit 6236fce

Please sign in to comment.