MDEV-14322 main.type_datetime failed in buildbot, results mismatch

Changing the pause from 5 to 10 seconds.
This commit is contained in:
Alexander Barkov 2018-10-15 10:48:55 +04:00
parent 4d07e6c12d
commit cb4877a503

View File

@ -175,12 +175,12 @@ set @@sql_mode= @org_mode;
## ( Bug#29290 type_datetime.test failure in 5.1 ) ## ( Bug#29290 type_datetime.test failure in 5.1 )
## Therefore we sleep a bit if we are too close to midnight. ## Therefore we sleep a bit if we are too close to midnight.
## The complete test itself needs around 1 second. ## The complete test itself needs around 1 second.
## Therefore a time_distance to midnight of 5 seconds should be sufficient. ## Therefore a time_distance to midnight of 10 seconds should be sufficient.
if (`SELECT CURTIME() > SEC_TO_TIME(24 * 3600 - 5)`) if (`SELECT CURTIME() > SEC_TO_TIME(24 * 3600 - 10)`)
{ {
# We are here when CURTIME() is between '23:59:56' and '23:59:59'. # We are here when CURTIME() is between '23:59:51' and '23:59:59'.
# So a sleep time of 5 seconds brings us between '00:00:01' and '00:00:04'. # So a sleep time of 10 seconds brings us between '00:00:01' and '00:00:09'.
--real_sleep 5 --real_sleep 10
} }
create table t1 (f1 date, f2 datetime, f3 timestamp); create table t1 (f1 date, f2 datetime, f3 timestamp);
insert into t1(f1) values(curdate()); insert into t1(f1) values(curdate());