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

Commit b135351

Browse files
committed
Increased timeout to 10 seconds in two tests
Tests: pcre.test.lua and nested_args.test.lua. Fixes #137.
1 parent 6e522eb commit b135351

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

test/common/pcre.test.lua

+4
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ box.cfg({})
166166

167167
test_utils.run_testdata(testdata, {
168168
run_queries = run_queries,
169+
graphql_opts = {
170+
-- gh-137: timeout exceeded
171+
timeout_ms = 10000, -- 10 seconds
172+
}
169173
})
170174

171175
os.exit()

test/space/nested_args.test.lua

+8-14
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,24 @@ local emails_metadata = emails_testdata.get_test_metadata()
4949
-- build accessor and graphql schemas
5050
-- ----------------------------------
5151

52-
local common_accessor = graphql.accessor_space.new({
52+
local common_gql_wrapper = graphql.new({
5353
schemas = common_metadata.schemas,
5454
collections = common_metadata.collections,
5555
service_fields = common_metadata.service_fields,
5656
indexes = common_metadata.indexes,
57+
accessor = 'space',
58+
-- gh-137: timeout exceeded
59+
timeout_ms = 10000, -- 10 seconds
5760
})
5861

59-
local common_gql_wrapper = graphql.new({
60-
schemas = common_metadata.schemas,
61-
collections = common_metadata.collections,
62-
accessor = common_accessor,
63-
})
64-
65-
local emails_accessor = graphql.accessor_space.new({
62+
local emails_gql_wrapper = graphql.new({
6663
schemas = emails_metadata.schemas,
6764
collections = emails_metadata.collections,
6865
service_fields = emails_metadata.service_fields,
6966
indexes = emails_metadata.indexes,
70-
})
71-
72-
local emails_gql_wrapper = graphql.new({
73-
schemas = emails_metadata.schemas,
74-
collections = emails_metadata.collections,
75-
accessor = emails_accessor,
67+
accessor = 'space',
68+
-- gh-137: timeout exceeded
69+
timeout_ms = 10000, -- 10 seconds
7670
})
7771

7872
-- run queries

0 commit comments

Comments
 (0)