Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
[#357] Extends query_timeout for iTaigi to avoid timeout (#358)
Browse files Browse the repository at this point in the history
Try to set query_timeout from 5 secs to 60 secs for iTaigi.
  • Loading branch information
Frank Jheng committed Jun 18, 2019
1 parent 01cd042 commit 2865769
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zdict/tests/dictionaries/test_itaigi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ def setup_class(cls):

cls.words = ['芭樂', '測試']

# Set query_timeout from 5 seconds to 60 seconds,
# so it won't timeout that often.
cls.dict.args.query_timeout = 60
# Setup normal query data
cls.dict.args.verbose = False
cls.records = [cls.dict.query(word) for word in cls.words]
Expand Down

0 comments on commit 2865769

Please sign in to comment.