Skip to content

Commit

Permalink
test correct
Browse files Browse the repository at this point in the history
  • Loading branch information
sonic182 committed Jan 25, 2022
1 parent 665fe4e commit 379e223
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions tests/test_sample.py

This file was deleted.

3 changes: 1 addition & 2 deletions tests/unit/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_cache_counter_thread_safe():
"""Test sync cache, counter case."""
counter = Counter()

@CacheDecorator()
@CacheDecorator(thread_safe=True)
def mycoro(counter: Counter):
counter.count += 1
return counter.count
Expand All @@ -63,7 +63,6 @@ def mycoro(counter: Counter):

for fut in futures:
latest = fut.result()
print(latest)
assert latest == 1


Expand Down

0 comments on commit 379e223

Please sign in to comment.