Skip to content

Commit c66c070

Browse files
committed
Fix
1 parent a5faced commit c66c070

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

internal/endtoend/vet_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"testing"
1313

1414
"github.com/sqlc-dev/sqlc/internal/cmd"
15+
"github.com/sqlc-dev/sqlc/internal/opts"
1516
"github.com/sqlc-dev/sqlc/internal/sqltest"
1617
"github.com/sqlc-dev/sqlc/internal/sqltest/local"
1718
)
@@ -69,11 +70,11 @@ func TestExamplesVet(t *testing.T) {
6970
}
7071

7172
var stderr bytes.Buffer
72-
opts := &cmd.Options{
73+
o := &cmd.Options{
7374
Stderr: &stderr,
74-
Env: cmd.Env{},
75+
Env: cmd.Env{Debug: opts.DebugFromString("")},
7576
}
76-
err := cmd.Vet(ctx, path, "", opts)
77+
err := cmd.Vet(ctx, path, "", o)
7778
if err != nil {
7879
t.Fatalf("sqlc vet failed: %s %s", err, stderr.String())
7980
}

0 commit comments

Comments
 (0)