Skip to content

Commit 63dbd0d

Browse files
committed
statusccl: fix TestTenantStatusAPI with sync stats
Resolves: #151886 Epic: None Release note: None
1 parent ac39c2e commit 63dbd0d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/ccl/serverccl/statusccl/tenant_status_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ func TestTenantStatusAPI(t *testing.T) {
5757
ctx := context.Background()
5858

5959
var knobs base.TestingKnobs
60-
knobs.SQLStatsKnobs = sqlstats.CreateTestingKnobs()
60+
61+
sqlStatsKnobs := sqlstats.CreateTestingKnobs()
62+
sqlStatsKnobs.SynchronousSQLStats = true
63+
64+
knobs.SQLStatsKnobs = sqlStatsKnobs
6165
knobs.SpanConfig = &spanconfig.TestingKnobs{
6266
// Some of these subtests expect multiple (uncoalesced) tenant ranges.
6367
StoreDisableCoalesceAdjacent: true,

0 commit comments

Comments
 (0)