Skip to content

Commit 320bcb2

Browse files
committed
Tweak test timing
1 parent bd029ce commit 320bcb2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • localtests/panic-on-warnings-update-pk-with-duplicate-on-new-unique-index

localtests/panic-on-warnings-update-pk-with-duplicate-on-new-unique-index/create.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ drop event if exists gh_ost_test;
1313
delimiter ;;
1414
create event gh_ost_test
1515
on schedule every 1 second
16-
starts current_timestamp + interval 8 second
16+
starts current_timestamp + interval 6 second
1717
ends current_timestamp + interval 60 second
1818
on completion not preserve
1919
enable
@@ -22,7 +22,7 @@ begin
2222
-- This UPDATE modifies the primary key, so it will be converted to DELETE + INSERT
2323
-- The INSERT will attempt to insert email='alice@example.com' (duplicate)
2424
-- which violates the new unique index being added by the migration
25-
-- Delay of 8s ensures this fires after row copy starts (throttle delays until 5s)
26-
-- so the duplicate is caught during DML event application, not row copy
25+
-- Delay of 6s ensures this fires after row copy starts (throttle delays until 5s)
26+
-- but before migration completes, so duplicate is caught during DML event application
2727
update gh_ost_test set id=10, email='alice@example.com' where id=2;
2828
end ;;

0 commit comments

Comments
 (0)