Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit cdabd3c

Browse files
committed
testing: fix index field numbers in email testdata
1 parent 2ce2d88 commit cdabd3c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/space/nested_args.test.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ local emails_testdata = require('test.testdata.nullable_1_1_conn_testdata')
2020

2121
-- init box and data schema
2222
box.cfg{background = false}
23-
common_testdata.init_spaces()
24-
emails_testdata.init_spaces()
23+
24+
local avro_version = test_utils.major_avro_schema_version()
25+
26+
common_testdata.init_spaces(avro_version)
27+
emails_testdata.init_spaces(avro_version)
2528

2629
-- upload test data
2730
local common_meta = common_testdata.meta or common_testdata.get_test_metadata()
2831
local emails_meta = emails_testdata.meta or emails_testdata.get_test_metadata()
2932
common_testdata.fill_test_data(box.space, common_meta)
3033
emails_testdata.fill_test_data(box.space, emails_meta)
3134

32-
local avro_version = test_utils.major_avro_schema_version()
33-
3435
local LOCALPART_FN = 1
3536
local DOMAIN_FN = 2
3637
local BODY_FN = avro_version == 3 and 5 or 7

test/testdata/nullable_1_1_conn_testdata.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ function nullable_1_1_conn_testdata.get_test_metadata()
102102
end
103103

104104
function nullable_1_1_conn_testdata.init_spaces(avro_version)
105+
assert(avro_version == 2 or avro_version == 3)
106+
105107
-- email fields
106108
local LOCALPART_FN = 1
107109
local DOMAIN_FN = 2

0 commit comments

Comments
 (0)