Fix flaky test

This commit is contained in:
Robert Schulze 2024-05-26 13:54:35 +00:00
parent 1f1c2c21b1
commit 14f259d9d7
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 0 additions and 4 deletions

View File

@ -1,11 +1,9 @@
-- generateSnowflakeID
1
1
0
0
1
100
-- generateSnowflakeIDThreadMonotonic
1
1
100

View File

@ -1,6 +1,5 @@
SELECT '-- generateSnowflakeID';
SELECT bitShiftLeft(toUInt64(generateSnowflakeID()), 52) = 0; -- check machine sequence number is zero
SELECT bitAnd(bitShiftRight(toUInt64(generateSnowflakeID()), 63), 1) = 0; -- check first bit is zero
SELECT generateSnowflakeID(1) = generateSnowflakeID(2); -- disabled common subexpression elimination --> lhs != rhs
@ -18,7 +17,6 @@ FROM
SELECT '-- generateSnowflakeIDThreadMonotonic';
SELECT bitShiftLeft(toUInt64(generateSnowflakeIDThreadMonotonic()), 52) = 0; -- check machine sequence number is zero
SELECT bitAnd(bitShiftRight(toUInt64(generateSnowflakeIDThreadMonotonic()), 63), 1) = 0; -- check first bit is zero
SELECT generateSnowflakeIDThreadMonotonic(1, 2); -- { serverError NUMBER_OF_ARGUMENTS_DOESNT_MATCH }