Skip to content

Commit a8320b5

Browse files
craig[bot]spilchen
andcommitted
Merge #158014
158014: pkg/sql/catalog/lease: make table creation push test resilient r=spilchen a=spilchen Retry an insert with testutils.SucceedsSoon. This helps to resolve a testflake where the insert fails because it runs with a timestamp from before the schema change that created the table. Normally, the transaction gets pushed, but it can flake in multi-tenant environments. Release note: none Closes #157251 Co-authored-by: Matt Spilchen <[email protected]>
2 parents 560b635 + b3d45c1 commit a8320b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sql/catalog/lease/lease_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ func TestTableCreationPushesTxnsInRecentPast(t *testing.T) {
17681768
ServerArgs: base.TestServerArgs{
17691769
Knobs: base.TestingKnobs{
17701770
Store: &kvserver.StoreTestingKnobs{
1771-
MaxOffset: time.Second,
1771+
MaxOffset: 2 * time.Second,
17721772
},
17731773
},
17741774
},

0 commit comments

Comments
 (0)