Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
28681: sql: speed up two schema change tests by a bit r=vivekmenezes a=vivekmenezes

speed up TestSchemaChangeRetry and
TestSchemaChangeRetryOnVersionChange by
reducing the data used in these tests.

Release note: None

Co-authored-by: Vivek Menezes <[email protected]>
  • Loading branch information
craig[bot] and vivekmenezes committed Aug 16, 2018
2 parents 8299fe8 + cae7a7a commit d556fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sql/schema_changer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ CREATE TABLE t.test (k INT PRIMARY KEY, v INT);
}

// Bulk insert.
const maxValue = 5000
const maxValue = 2000
if err := bulkInsertIntoTable(sqlDB, maxValue); err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -1437,7 +1437,7 @@ CREATE TABLE t.test (k INT PRIMARY KEY, v INT);
}

// Bulk insert.
maxValue := 5000
maxValue := 2000
if err := bulkInsertIntoTable(sqlDB, maxValue); err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit d556fa9

Please sign in to comment.