Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wroge committed Dec 9, 2024
1 parent 8f10d13 commit 1138d83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sqlt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"strings"
"testing"
"text/template"
"time"

"github.com/DATA-DOG/go-sqlmock"
"github.com/spf13/afero"
Expand Down Expand Up @@ -840,7 +839,7 @@ func TestExec(t *testing.T) {
stmt := sqlt.Stmt[Book](
config,
sqlt.Start(func(runner *sqlt.Runner) {
runner.Context, _ = context.WithTimeout(runner.Context, time.Second)
runner.Context = context.WithoutCancel(runner.Context)
}),
sqlt.Parse(`
INSERT INTO books (id, title, json) VALUES ({{ .ID }}, {{ .Title }}, {{ .JSON }});
Expand Down

0 comments on commit 1138d83

Please sign in to comment.