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

Commit

Permalink
[tests] Set timout to 60 seconds for naer dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Jheng committed Sep 7, 2021
1 parent 03276da commit 960ae12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zdict/tests/dictionaries/test_naer.py
Expand Up @@ -16,6 +16,10 @@ def setup_class(cls):
cls.words = ['西爾河', 'spring mass']
cls.not_found_word = 'dsafwwe'

# 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 960ae12

Please sign in to comment.