1
0
Fork 0

Bug fix/increase test timeout (#10596)

* add quoting for better readability of the errormessage

* increase sleep for stability
This commit is contained in:
Wilfried Goesgens 2019-11-29 18:46:33 +01:00 committed by KVS85
parent eeadc94e0f
commit 2bf269a842
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ describe ArangoDB do
@longQuery = "FOR x IN 1..1 LET y = SLEEP(0.2) LET a = y LET b = a LET c = b LET d = c LET e = d LET f = e RETURN x"
@longQueryBody = JSON.dump({query: @longQuery})
@queryWithBind = "FOR x IN 1..5 LET y = SLEEP(@value) RETURN x"
@queryWithBindBody = JSON.dump({query: @queryWithBind, bindVars: {value: 2}})
@queryWithBindBody = JSON.dump({query: @queryWithBind, bindVars: {value: 4}})
@queryEndpoint ="/_api/cursor"
@queryPrefix = "api-cursor"
end
@ -135,7 +135,7 @@ describe ArangoDB do
found.should have_key("query")
found["query"].should eq(@queryWithBind)
found.should have_key("bindVars")
found["bindVars"].should eq({"value" => 2})
found["bindVars"].should eq({"value" => 4})
found.should have_key("runTime")
found["runTime"].should be_kind_of(Numeric)
found.should have_key("started")