Skip to content

Commit

Permalink
tests: remove direct uses of *TestCluster
Browse files Browse the repository at this point in the history
TestCluster has an interface. Use it.

Release note: None
  • Loading branch information
knz committed Aug 2, 2023
1 parent 6f29b21 commit 6c4fb4e
Show file tree
Hide file tree
Showing 96 changed files with 808 additions and 739 deletions.
2 changes: 1 addition & 1 deletion pkg/bench/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func BenchmarkTracing(b *testing.B) {
Tracer: tr,
},
})
sqlRunner := sqlutils.MakeRoundRobinSQLRunner(tc.Conns[0], tc.Conns[1], tc.Conns[2])
sqlRunner := sqlutils.MakeRoundRobinSQLRunner(tc.ServerConn(0), tc.ServerConn(1), tc.ServerConn(2))
return sqlRunner, tc.Stopper()
},
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/bench/foreachdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ func benchmarkMultinodeCockroach(b *testing.B, f BenchmarkFn) {
DefaultTestTenant: base.TestIsForStuffThatShouldWorkWithSecondaryTenantsButDoesntYet(83461),
},
})
if _, err := tc.Conns[0].Exec(`CREATE DATABASE bench`); err != nil {
if _, err := tc.ServerConn(0).Exec(`CREATE DATABASE bench`); err != nil {
b.Fatal(err)
}
defer tc.Stopper().Stop(context.TODO())

f(b, sqlutils.MakeRoundRobinSQLRunner(tc.Conns[0], tc.Conns[1], tc.Conns[2]))
f(b, sqlutils.MakeRoundRobinSQLRunner(tc.ServerConn(0), tc.ServerConn(1), tc.ServerConn(2)))
}

func benchmarkPostgres(b *testing.B, f BenchmarkFn) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/backup_tenant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestBackupTenantImportingTable(t *testing.T) {
},
})
defer tc.Stopper().Stop(ctx)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

tenantID := roachpb.MustMakeTenantID(10)
tSrv, tSQL := serverutils.StartTenant(t, tc.Server(0), base.TestTenantArgs{
Expand Down
142 changes: 76 additions & 66 deletions pkg/ccl/backupccl/backup_test.go

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pkg/ccl/backupccl/backupinfo/backup_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestMetadataSST(t *testing.T) {

// Check for correct backup metadata on tenant backups.
userfile2 := "userfile:///2"
_, err := tc.Servers[0].StartTenant(ctx, base.TestTenantArgs{TenantID: roachpb.MustMakeTenantID(10)})
_, err := tc.Server(0).StartTenant(ctx, base.TestTenantArgs{TenantID: roachpb.MustMakeTenantID(10)})
require.NoError(t, err)
sqlDB.Exec(t, `BACKUP TENANT 10 TO $1`, userfile2)
checkMetadata(ctx, t, tc, userfile2)
Expand All @@ -90,10 +90,10 @@ func checkMetadata(
ctx,
backupLoc,
base.ExternalIODirConfig{},
tc.Servers[0].ClusterSettings(),
tc.Server(0).ClusterSettings(),
blobs.TestEmptyBlobClientFactory,
username.RootUserName(),
tc.Servers[0].InternalDB().(isql.DB),
tc.Server(0).InternalDB().(isql.DB),
nil, /* limiters */
cloud.NilMetrics,
)
Expand All @@ -105,7 +105,7 @@ func checkMetadata(
t.Fatal(err)
}

srv := tc.Servers[0]
srv := tc.Server(0)
execCfg := srv.ExecutorConfig().(sql.ExecutorConfig)
kmsEnv := backupencryption.MakeBackupKMSEnv(srv.ClusterSettings(), &base.ExternalIODirConfig{},
execCfg.InternalDB, username.RootUserName())
Expand Down
12 changes: 6 additions & 6 deletions pkg/ccl/backupccl/backuprand/backup_rand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ func TestBackupRestoreRandomDataRoundtrips(t *testing.T) {
tc := testcluster.StartTestCluster(t, 1, params)
defer tc.Stopper().Stop(ctx)
tc.ToggleReplicateQueues(false)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))
sqlDB.Exec(t, "CREATE DATABASE rand")

setup := sqlsmith.Setups[sqlsmith.RandTableSetupName](rng)
for _, stmt := range setup {
if _, err := tc.Conns[0].Exec(stmt); err != nil {
if _, err := tc.ServerConn(0).Exec(stmt); err != nil {
t.Fatal(err)
}
}
Expand All @@ -91,7 +91,7 @@ database_name = 'rand' AND schema_name = 'public'`)
}
// Note: we do not care how many rows successfully populate
// the given table
if _, err := randgen.PopulateTableWithRandData(rng, tc.Conns[0], tableName,
if _, err := randgen.PopulateTableWithRandData(rng, tc.ServerConn(0), tableName,
numInserts); err != nil {
t.Fatal(err)
}
Expand All @@ -106,7 +106,7 @@ database_name = 'rand' AND schema_name = 'public'`)
if runSchemaOnlyExtension == "" {
var err error
tableID := sqlutils.QueryTableID(t, sqlDB.DB, "rand", "public", tableName)
expectedData[tableName], err = fingerprintutils.FingerprintTable(ctx, tc.Conns[0], tableID,
expectedData[tableName], err = fingerprintutils.FingerprintTable(ctx, tc.ServerConn(0), tableID,
fingerprintutils.Stripped())
require.NoError(t, err)
}
Expand Down Expand Up @@ -142,7 +142,7 @@ database_name = 'rand' AND schema_name = 'public'`)
"SHOW CREATE %s not equal after RESTORE", tableName)
if runSchemaOnlyExtension == "" {
tableID := sqlutils.QueryTableID(t, sqlDB.DB, "restoredb", "public", tableName)
fingerpint, err := fingerprintutils.FingerprintTable(ctx, tc.Conns[0], tableID,
fingerpint, err := fingerprintutils.FingerprintTable(ctx, tc.ServerConn(0), tableID,
fingerprintutils.Stripped())
require.NoError(t, err)
require.Equal(t, expectedData[tableName], fingerpint)
Expand Down Expand Up @@ -194,7 +194,7 @@ database_name = 'rand' AND schema_name = 'public'`)
tables := buf.String()
t.Logf("Testing subset backup/restore %s", tables)
sqlDB.Exec(t, fmt.Sprintf(`BACKUP TABLE %s INTO $1`, tables), backupTarget)
_, err := tc.Conns[0].Exec(
_, err := tc.ServerConn(0).Exec(
fmt.Sprintf("RESTORE TABLE %s FROM LATEST IN $1 WITH OPTIONS (into_db='restoredb' %s)", tables, runSchemaOnlyExtension),
backupTarget)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/backuptestutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func StartBackupRestoreTestCluster(
tc := testcluster.StartTestCluster(t, clusterSize, opts.testClusterArgs)
opts.initFunc(tc)

sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

if opts.bankArgs != nil {
const payloadSize = 100
Expand Down Expand Up @@ -157,7 +157,7 @@ func StartBackupRestoreTestCluster(
}

return tc, sqlDB, opts.dataDir, func() {
CheckForInvalidDescriptors(t, tc.Conns[0])
CheckForInvalidDescriptors(t, tc.ServerConn(0))
tc.Stopper().Stop(ctx) // cleans up in memory storage's auxiliary dirs
dirCleanupFunc()
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/ccl/backupccl/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ func BenchmarkIteratorMemory(b *testing.B) {
ctx,
storeURI,
base.ExternalIODirConfig{},
tc.Servers[0].ClusterSettings(),
tc.Server(0).ClusterSettings(),
blobs.TestEmptyBlobClientFactory,
username.RootUserName(),
tc.Servers[0].InternalDB().(isql.DB),
tc.Server(0).InternalDB().(isql.DB),
nil, /* limiters */
cloud.NilMetrics,
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/ccl/backupccl/file_sst_sink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,10 +860,10 @@ func fileSSTSinkTestSetUp(
) (*fileSSTSink, cloud.ExternalStorage) {
store, err := cloud.ExternalStorageFromURI(ctx, "userfile:///0",
base.ExternalIODirConfig{},
tc.Servers[0].ClusterSettings(),
tc.Server(0).ClusterSettings(),
blobs.TestEmptyBlobClientFactory,
username.RootUserName(),
tc.Servers[0].InternalDB().(isql.DB),
tc.Server(0).InternalDB().(isql.DB),
nil, /* limiters */
cloud.NilMetrics,
)
Expand All @@ -876,7 +876,7 @@ func fileSSTSinkTestSetUp(
id: 1,
enc: nil,
progCh: progCh,
settings: &tc.Servers[0].ClusterSettings().SV,
settings: &tc.Server(0).ClusterSettings().SV,
}

sink := makeFileSSTSink(sinkConf, store)
Expand Down
17 changes: 11 additions & 6 deletions pkg/ccl/backupccl/full_cluster_backup_restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ func TestFullClusterBackup(t *testing.T) {
allowProgressAfterPreRestore := make(chan struct{})
// Closed to signal the zones have been restored.
restoredZones := make(chan struct{})
for _, server := range tcRestore.Servers {
for i := 0; i < tcRestore.NumServers(); i++ {
server := tcRestore.Server(i)
registry := server.JobRegistry().(*jobs.Registry)
registry.TestingWrapResumerConstructor(jobspb.TypeRestore,
func(raw jobs.Resumer) jobs.Resumer {
Expand Down Expand Up @@ -495,7 +496,8 @@ func TestClusterRestoreSystemTableOrdering(t *testing.T) {
defer cleanupEmptyCluster()

restoredSystemTables := make([]string, 0)
for _, server := range tcRestore.Servers {
for i := 0; i < tcRestore.NumServers(); i++ {
server := tcRestore.Server(i)
registry := server.JobRegistry().(*jobs.Registry)
registry.TestingWrapResumerConstructor(jobspb.TypeRestore,
func(raw jobs.Resumer) jobs.Resumer {
Expand Down Expand Up @@ -712,7 +714,8 @@ func TestClusterRestoreFailCleanup(t *testing.T) {

// Inject a retry error, that returns once.
alreadyErrored := false
for _, server := range tcRestore.Servers {
for i := 0; i < tcRestore.NumServers(); i++ {
server := tcRestore.Server(i)
registry := server.JobRegistry().(*jobs.Registry)
registry.TestingWrapResumerConstructor(jobspb.TypeRestore,
func(raw jobs.Resumer) jobs.Resumer {
Expand Down Expand Up @@ -744,7 +747,8 @@ func TestClusterRestoreFailCleanup(t *testing.T) {
defer cleanupEmptyCluster()

// Bugger the backup by injecting a failure while restoring the system data.
for _, server := range tcRestore.Servers {
for i := 0; i < tcRestore.NumServers(); i++ {
server := tcRestore.Server(i)
registry := server.JobRegistry().(*jobs.Registry)
registry.TestingWrapResumerConstructor(jobspb.TypeRestore,
func(raw jobs.Resumer) jobs.Resumer {
Expand Down Expand Up @@ -787,7 +791,8 @@ func TestClusterRestoreFailCleanup(t *testing.T) {
defer cleanupEmptyCluster()

// Bugger the backup by injecting a failure while restoring the system data.
for _, server := range tcRestore.Servers {
for i := 0; i < tcRestore.NumServers(); i++ {
server := tcRestore.Server(i)
registry := server.JobRegistry().(*jobs.Registry)
registry.TestingWrapResumerConstructor(jobspb.TypeRestore,
func(raw jobs.Resumer) jobs.Resumer {
Expand Down Expand Up @@ -1065,7 +1070,7 @@ func TestClusterRevisionDoesNotBackupOptOutSystemTables(t *testing.T) {
defer log.Scope(t).Close(t)

tc, _, _, cleanup := backupRestoreTestSetup(t, singleNode, 10, InitManualReplication)
conn := tc.Conns[0]
conn := tc.ServerConn(0)
sqlDB := sqlutils.MakeSQLRunner(conn)
defer cleanup()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestRunGenerativeSplitAndScatterContextCancel(t *testing.T) {
uri := localFoo + "/" + backups[0][0]

codec := keys.MakeSQLCodec(s0.RPCContext().TenantID)
backupTableDesc := desctestutils.TestingGetPublicTableDescriptor(tc.Servers[0].DB(), codec, "data", "bank")
backupTableDesc := desctestutils.TestingGetPublicTableDescriptor(tc.Server(0).DB(), codec, "data", "bank")
backupStartKey := backupTableDesc.PrimaryIndexSpan(codec).Key

spec := makeTestingGenerativeSplitAndScatterSpec(
Expand Down Expand Up @@ -171,7 +171,7 @@ func TestRunGenerativeSplitAndScatterRandomizedDestOnFailScatter(t *testing.T) {
uri := localFoo + "/" + backups[0][0]

codec := keys.MakeSQLCodec(s0.RPCContext().TenantID)
backupTableDesc := desctestutils.TestingGetPublicTableDescriptor(tc.Servers[0].DB(), codec, "data", "bank")
backupTableDesc := desctestutils.TestingGetPublicTableDescriptor(tc.Server(0).DB(), codec, "data", "bank")
backupStartKey := backupTableDesc.PrimaryIndexSpan(codec).Key

spec := makeTestingGenerativeSplitAndScatterSpec(
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/restore_mid_schema_change_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func restoreMidSchemaChange(
tc.Stopper().Stop(ctx)
dirCleanupFn()
}()
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

symlink := filepath.Join(dir, "foo")
err := os.Symlink(backupDir, symlink)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/restore_old_versions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func restoreOldVersionClusterTest(exportDir string) func(t *testing.T) {
ExternalIODir: externalDir,
},
})
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))
defer func() {
tc.Stopper().Stop(ctx)
dirCleanup()
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/system_schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestAllSystemTablesHaveBackupConfig(t *testing.T) {
DefaultTestTenant: base.TestControlsTenantsExplicitly,
}})
defer tc.Stopper().Stop(ctx)
systemSQL := sqlutils.MakeSQLRunner(tc.Conns[0])
systemSQL := sqlutils.MakeSQLRunner(tc.ServerConn(0))

_, tSQL := serverutils.StartTenant(t, tc.Server(0), base.TestTenantArgs{
TenantID: roachpb.MustMakeTenantID(10),
Expand Down
8 changes: 4 additions & 4 deletions pkg/ccl/backupccl/tenant_backup_nemesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestTenantBackupWithCanceledImport(t *testing.T) {
hostSQLDB.Exec(t, "SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")
hostSQLDB.Exec(t, "ALTER TENANT ALL SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")

tenant10, err := tc.Servers[0].StartTenant(ctx, base.TestTenantArgs{
tenant10, err := tc.Server(0).StartTenant(ctx, base.TestTenantArgs{
TenantID: roachpb.MustMakeTenantID(10),
TestingKnobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestTenantBackupWithCanceledImport(t *testing.T) {
hostSQLDB.Exec(t, "BACKUP TENANT 10 INTO LATEST IN 'nodelocal://1/tenant-backup'")
hostSQLDB.Exec(t, "RESTORE TENANT 10 FROM LATEST IN 'nodelocal://1/tenant-backup' WITH virtual_cluster_name = 'tenant-11'")

tenant11, err := tc.Servers[0].StartTenant(ctx, base.TestTenantArgs{
tenant11, err := tc.Server(0).StartTenant(ctx, base.TestTenantArgs{
TenantName: "tenant-11",
DisableCreateTenant: true,
})
Expand Down Expand Up @@ -147,7 +147,7 @@ func TestTenantBackupNemesis(t *testing.T) {
hostSQLDB.Exec(t, "SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")
hostSQLDB.Exec(t, "ALTER TENANT ALL SET CLUSTER SETTING storage.mvcc.range_tombstones.enabled = true")

tenant10, err := tc.Servers[0].StartTenant(ctx, base.TestTenantArgs{
tenant10, err := tc.Server(0).StartTenant(ctx, base.TestTenantArgs{
TenantID: roachpb.MustMakeTenantID(10),
TestingKnobs: base.TestingKnobs{
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
Expand Down Expand Up @@ -248,7 +248,7 @@ func TestTenantBackupNemesis(t *testing.T) {
//
// We check bank.bank which has had the workload running against it
// and any table from a completed nemesis.
tenant11, err := tc.Servers[0].StartTenant(ctx, base.TestTenantArgs{
tenant11, err := tc.Server(0).StartTenant(ctx, base.TestTenantArgs{
TenantName: "tenant-11",
DisableCreateTenant: true,
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/changefeedccl/changefeed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8000,7 +8000,7 @@ func TestChangefeedExecLocality(t *testing.T) {
defer tc.Stopper().Stop(ctx)
tc.ToggleReplicateQueues(false)

n2 := sqlutils.MakeSQLRunner(tc.Conns[1])
n2 := sqlutils.MakeSQLRunner(tc.ServerConn(1))

// Setup a table with at least one range on each node to be sure we will see a
// file from that node if it isn't excluded by filter. Relocate can fail with
Expand Down
6 changes: 3 additions & 3 deletions pkg/ccl/cloudccl/amazon/s3_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestS3ExternalConnection(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down Expand Up @@ -198,7 +198,7 @@ func TestAWSKMSExternalConnection(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down Expand Up @@ -307,7 +307,7 @@ func TestAWSKMSExternalConnectionAssumeRole(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/cloudccl/azure/azure_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestExternalConnections(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down
8 changes: 4 additions & 4 deletions pkg/ccl/cloudccl/gcp/gcp_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestGCPKMSExternalConnection(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down Expand Up @@ -178,7 +178,7 @@ func TestGCPKMSExternalConnectionAssumeRole(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down Expand Up @@ -305,7 +305,7 @@ func TestGCPAssumeRoleExternalConnection(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down Expand Up @@ -452,7 +452,7 @@ func TestGCPExternalConnection(t *testing.T) {
defer tc.Stopper().Stop(context.Background())

tc.WaitForNodeLiveness(t)
sqlDB := sqlutils.MakeSQLRunner(tc.Conns[0])
sqlDB := sqlutils.MakeSQLRunner(tc.ServerConn(0))

// Setup some dummy data.
sqlDB.Exec(t, `CREATE DATABASE foo`)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ccl/importerccl/ccl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ func TestImportInTenant(t *testing.T) {
}
tc := testcluster.StartTestCluster(t, 1, base.TestClusterArgs{ServerArgs: args})
defer tc.Stopper().Stop(ctx)
conn := tc.Conns[0]
conn := tc.ServerConn(0)
sqlDB := sqlutils.MakeSQLRunner(conn)

// Setup a few tenants, each with a different table.
Expand Down
Loading

0 comments on commit 6c4fb4e

Please sign in to comment.