Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: add consistent testing knobs to all tenants #70231

Merged
merged 1 commit into from
Nov 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions pkg/ccl/serverccl/statusccl/tenant_grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ func TestTenantGRPCServices(t *testing.T) {
server := testCluster.Server(0)

tenantID := serverutils.TestTenantID()
tenant, connTenant := serverutils.StartTenant(t, server, base.TestTenantArgs{
TenantID: tenantID,
TestingKnobs: base.TestingKnobs{
SQLStatsKnobs: &sqlstats.TestingKnobs{
AOSTClause: "AS OF SYSTEM TIME '-1us'",
},
testingKnobs := base.TestingKnobs{
SQLStatsKnobs: &sqlstats.TestingKnobs{
AOSTClause: "AS OF SYSTEM TIME '-1us'",
},
}
tenant, connTenant := serverutils.StartTenant(t, server, base.TestTenantArgs{
TenantID: tenantID,
TestingKnobs: testingKnobs,
})
defer connTenant.Close()

Expand Down Expand Up @@ -92,8 +93,9 @@ func TestTenantGRPCServices(t *testing.T) {

log.TestingClearServerIdentifiers()
tenant2, connTenant2 := serverutils.StartTenant(t, server, base.TestTenantArgs{
TenantID: tenantID,
Existing: true,
TenantID: tenantID,
Existing: true,
TestingKnobs: testingKnobs,
})
defer connTenant2.Close()

Expand All @@ -110,7 +112,8 @@ func TestTenantGRPCServices(t *testing.T) {

log.TestingClearServerIdentifiers()
tenant3, connTenant3 := serverutils.StartTenant(t, server, base.TestTenantArgs{
TenantID: roachpb.MakeTenantID(11),
TenantID: roachpb.MakeTenantID(11),
TestingKnobs: testingKnobs,
})
defer connTenant3.Close()

Expand Down