Skip to content

Commit b3d45c1

Browse files
committed
pkg/sql/catalog/lease: make table creation push test resilient
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
1 parent 1781fc1 commit b3d45c1

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)