Skip to content

Commit

Permalink
increase timeout sec
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu-g committed Oct 14, 2024
1 parent 2068b01 commit 450e5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/processors/test_knp.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_thread_safe() -> None:
texts = ["外国人参政権", "望遠鏡で泳いでいる少女を見た。", "エネルギーを素敵にENEOS"]
texts *= 10
with concurrent.futures.ThreadPoolExecutor() as executor:
futures = [executor.submit(knp.apply_to_sentence, text) for text in texts]
futures = [executor.submit(knp.apply_to_sentence, text, timeout=60) for text in texts]
for i, future in enumerate(futures):
sentence = future.result()
assert sentence.text == texts[i]
Expand Down

0 comments on commit 450e5d1

Please sign in to comment.