diff --git a/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/cluster.go b/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/cluster.go index 910e3b439b48..c282ed93697c 100644 --- a/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/cluster.go +++ b/pkg/spanconfig/spanconfigtestutils/spanconfigtestcluster/cluster.go @@ -61,10 +61,10 @@ func (h *Handle) InitializeTenant(ctx context.Context, tenID roachpb.TenantID) * tenantState.cleanup = func() {} // noop } else { serverGCJobKnobs := testServer.SystemLayer().TestingKnobs().GCJob - tenantGCJobKnobs := sql.GCJobTestingKnobs{SkipWaitingForMVCCGC: true} + // Copy the GC job knobs from the server to the tenant. + tenantGCJobKnobs := sql.GCJobTestingKnobs{} if serverGCJobKnobs != nil { tenantGCJobKnobs = *serverGCJobKnobs.(*sql.GCJobTestingKnobs) - tenantGCJobKnobs.SkipWaitingForMVCCGC = true } tenantArgs := base.TestTenantArgs{ TenantID: tenID,