diff options
author | Meir Shpilraien (Spielrein) <meir@redis.com> | 2022-01-31 12:49:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 12:49:57 +0200 |
commit | 6ca97da0fcea4c260e656c3a05b12c34e5a4d63d (patch) | |
tree | a113cb648a21c65b7b0cdb44b7a0f47ab324adf8 | |
parent | d0bc4fff18afdf9e5421cc88e23ffbb876ecaec3 (diff) | |
download | redis-6ca97da0fcea4c260e656c3a05b12c34e5a4d63d.tar.gz |
Fix wrong version calculation on Redis Function tests. (#10217)
-rw-r--r-- | tests/unit/functions.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/functions.tcl b/tests/unit/functions.tcl index 187f7cfc4..65e99e9e7 100644 --- a/tests/unit/functions.tcl +++ b/tests/unit/functions.tcl @@ -1092,8 +1092,8 @@ start_server {tags {"scripting"}} { redis.register_function{function_name='get_version_v1', callback=function() return string.format('%s.%s.%s', - bit.band(bit.rshift(version, 4), 0x000000ff), - bit.band(bit.rshift(version, 2), 0x000000ff), + bit.band(bit.rshift(version, 16), 0x000000ff), + bit.band(bit.rshift(version, 8), 0x000000ff), bit.band(version, 0x000000ff)) end} redis.register_function{function_name='get_version_v2', callback=function() return redis.REDIS_VERSION end} |