Skip to content

Commit

Permalink
logictest: avoid a lint failure
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Nov 28, 2022
1 parent 1a6e9f8 commit 92327fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/sql/logictest/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,10 @@ func (t *logicTest) setup(
t.sharedIODir = tempExternalIODir
t.testCleanupFuncs = append(t.testCleanupFuncs, tempExternalIODirCleanup)

// Prevent a lint failure "this function is unused" when
// bazel.BuiltWithBazel returns false below.
_ = t.newTestServerCluster

if cfg.UseCockroachGoTestserver {
if !bazel.BuiltWithBazel() {
skip.IgnoreLint(t.t(), "cockroach-go/testserver can only be uzed in bazel builds")
Expand Down

0 comments on commit 92327fb

Please sign in to comment.