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

Commit 9d681cd

Browse files
committed
Disable variable check cases on avro-schema-2*
It is because the cases use mutation arguments, which is disabled on avro-schema-2*.
1 parent e7a826a commit 9d681cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/testdata/common_testdata.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,9 @@ function common_testdata.drop_spaces()
359359
end
360360

361361
function common_testdata.run_queries(gql_wrapper)
362+
local avro_version = test_utils.major_avro_schema_version()
362363
local test = tap.test('common')
363-
test:plan(53)
364+
test:plan(avro_version == 3 and 53 or 30)
364365

365366
local query_1 = [[
366367
query user_by_order($order_id: String) {
@@ -1302,6 +1303,11 @@ function common_testdata.run_queries(gql_wrapper)
13021303

13031304
-- }}}
13041305

1306+
if avro_version == 2 then
1307+
assert(test:check(), 'check plan')
1308+
return
1309+
end
1310+
13051311
local query_13 = [[
13061312
mutation($xorder_metainfo: order_metainfo_collection_update) {
13071313
order_metainfo_collection(update: $xorder_metainfo, limit: 1) {

0 commit comments

Comments
 (0)