This repository was archived by the owner on Apr 14, 2022. It is now read-only.
File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,18 @@ local emails_testdata = require('test.testdata.nullable_1_1_conn_testdata')
20
20
21
21
-- init box and data schema
22
22
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 )
25
28
26
29
-- upload test data
27
30
local common_meta = common_testdata .meta or common_testdata .get_test_metadata ()
28
31
local emails_meta = emails_testdata .meta or emails_testdata .get_test_metadata ()
29
32
common_testdata .fill_test_data (box .space , common_meta )
30
33
emails_testdata .fill_test_data (box .space , emails_meta )
31
34
32
- local avro_version = test_utils .major_avro_schema_version ()
33
-
34
35
local LOCALPART_FN = 1
35
36
local DOMAIN_FN = 2
36
37
local BODY_FN = avro_version == 3 and 5 or 7
Original file line number Diff line number Diff line change @@ -102,6 +102,8 @@ function nullable_1_1_conn_testdata.get_test_metadata()
102
102
end
103
103
104
104
function nullable_1_1_conn_testdata .init_spaces (avro_version )
105
+ assert (avro_version == 2 or avro_version == 3 )
106
+
105
107
-- email fields
106
108
local LOCALPART_FN = 1
107
109
local DOMAIN_FN = 2
You can’t perform that action at this time.
0 commit comments