Skip to content

Commit ec6662c

Browse files
authored
Unbreak benchmark_decoders.py (#371)
1 parent bd9d5cb commit ec6662c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmarks/decoders/benchmark_decoders_library.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ def run_batch_using_threads(
496496
for _ in range(batch_parameters.batch_size):
497497
futures.append(executor.submit(function, *args))
498498
for f in futures:
499-
assert f.result()
499+
# TODO: Add a stronger check here based on arguments to the function.
500+
assert len(f.result()) > 0
500501
executor.shutdown(wait=True)
501502

502503

0 commit comments

Comments
 (0)