Skip to content

Commit

Permalink
test: fix flaky case
Browse files Browse the repository at this point in the history
The following sequence of events happens:
- data inserted with crud,
- schema updated 12 times,
- data updated with crud.

For Tarantool supporting field name in updates, there is no additional
check for a field name presenting in current format. So it is possible
to get outdated metadata.
  • Loading branch information
DifferentialOrange committed Dec 22, 2023
1 parent 48f801c commit 944725f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/simple_operations_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ pgroup.test_intermediate_nullable_fields_update = function(g)
end)

local result, err = g.cluster.main_server.net_box:call('crud.update',
{'developers', 1, {{'=', 'extra_3', { a = { b = {} } } }}})
{'developers', 1, {{'=', 'extra_3', { a = { b = {} } } }}, {fetch_latest_metadata = true}})
t.assert_equals(err, nil)
objects = crud.unflatten_rows(result.rows, result.metadata)
t.assert_equals(objects, {
Expand Down

0 comments on commit 944725f

Please sign in to comment.