Skip to content

Commit 450e5d1

Browse files
committed
increase timeout sec
1 parent 2068b01 commit 450e5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/processors/test_knp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_thread_safe() -> None:
8282
texts = ["外国人参政権", "望遠鏡で泳いでいる少女を見た。", "エネルギーを素敵にENEOS"]
8383
texts *= 10
8484
with concurrent.futures.ThreadPoolExecutor() as executor:
85-
futures = [executor.submit(knp.apply_to_sentence, text) for text in texts]
85+
futures = [executor.submit(knp.apply_to_sentence, text, timeout=60) for text in texts]
8686
for i, future in enumerate(futures):
8787
sentence = future.result()
8888
assert sentence.text == texts[i]

0 commit comments

Comments
 (0)