Skip to content

Commit 9200d30

Browse files
committed
sql/importer: speed up TestImportCSVStmt
In order to speed up the test we now use short intervals for the jobs subsystem via the testing knob. Release note: None
1 parent a0f5010 commit 9200d30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/sql/importer/import_stmt_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,6 +2195,9 @@ func TestImportCSVStmt(t *testing.T) {
21952195
ctx := context.Background()
21962196
baseDir := datapathutils.TestDataPath(t, "csv")
21972197
tc := serverutils.StartCluster(t, nodes, base.TestClusterArgs{ServerArgs: base.TestServerArgs{
2198+
Knobs: base.TestingKnobs{
2199+
JobsTestingKnobs: jobs.NewTestingKnobsWithShortIntervals(),
2200+
},
21982201
// Test fails when run within a test tenant. More
21992202
// investigation is required. Tracked with #76378.
22002203
DefaultTestTenant: base.TODOTestTenantDisabled,

0 commit comments

Comments
 (0)