Skip to content
Snippets Groups Projects
Unverified Commit 7c4b4f02 authored by Mergen Imeev's avatar Mergen Imeev Committed by Alexander Turenko
Browse files

test: trim field name update from serializer test


The test re encoding of -2^63 Lua number value did use update by a field
name, which does not supported in 1.10 and 2.2 branches. Field name
updates are orthogonal to Lua number serialization and we don't intend
to test them here. So it is safe and logical to get rid of them in the
test.

This change allow the test to pass on 1.10 and 2.2 branches.

Follows up #4672.

Reviewed-by: default avatarAlexander Tikhonov <avtikhon@tarantool.org>
Reviewed-by: default avatarAlexander Turenko <alexander.turenko@tarantool.org>
(cherry picked from commit 408b9ad4)
parent 411be0f0
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ s:insert({3, 0})
| ---
| - [3, 0]
| ...
s:update(3, {{'=', 'i', -2^63}})
s:update(3, {{'=', 2, -2^63}})
| ---
| - [3, -9223372036854775808]
| ...
......@@ -44,7 +44,7 @@ s:insert({4, 0})
| ---
| - [4, 0]
| ...
s:update(4, {{'=', 'i', -9223372036854775808LL}})
s:update(4, {{'=', 2, -9223372036854775808LL}})
| ---
| - [4, -9223372036854775808]
| ...
......@@ -72,7 +72,7 @@ s:insert({13, 0})
| ---
| - [13, 0]
| ...
s:update(13, {{'=', 'i', -2^63}})
s:update(13, {{'=', 2, -2^63}})
| ---
| - [13, -9223372036854775808]
| ...
......@@ -80,7 +80,7 @@ s:insert({14, 0})
| ---
| - [14, 0]
| ...
s:update(14, {{'=', 'i', -9223372036854775808LL}})
s:update(14, {{'=', 2, -9223372036854775808LL}})
| ---
| - [14, -9223372036854775808]
| ...
......
......@@ -14,9 +14,9 @@ _ = s:create_index('ii')
s:insert({1, -2^63})
s:insert({2, -9223372036854775808LL})
s:insert({3, 0})
s:update(3, {{'=', 'i', -2^63}})
s:update(3, {{'=', 2, -2^63}})
s:insert({4, 0})
s:update(4, {{'=', 'i', -9223372036854775808LL}})
s:update(4, {{'=', 2, -9223372036854775808LL}})
box.schema.user.grant('guest', 'read, write', 'space', 'serializer_test_space')
......@@ -26,9 +26,9 @@ s = cn.space.serializer_test_space
s:insert({11, -2^63})
s:insert({12, -9223372036854775808LL})
s:insert({13, 0})
s:update(13, {{'=', 'i', -2^63}})
s:update(13, {{'=', 2, -2^63}})
s:insert({14, 0})
s:update(14, {{'=', 'i', -9223372036854775808LL}})
s:update(14, {{'=', 2, -9223372036854775808LL}})
cn:close()
box.schema.user.revoke('guest', 'read, write', 'space', 'serializer_test_space')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment