Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
lidong committed Apr 26, 2024
1 parent 11d102f commit 98987b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Module Docs - https://github.com/ClericPy/morebuiltins/blob/master/doc.md
- [x] add zipapps as a submodule(https://github.com/ClericPy/zipapps) - v0.0.3
- [x] asyncio free-flying tasks(bg_task) - v0.0.3
- [x] named lock with timeout - v0.0.4
- [ ] FuncSchema (parse function to get the query-dict) - v0.0.4
- [x] FuncSchema (parse function to get the query-dict) - v0.0.4
- [ ] progress_bar
- [ ] http.server (upload)
- [ ] time reach syntax
Expand Down
4 changes: 2 additions & 2 deletions morebuiltins/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def _test1():
def _test2():
with NamedLock("_test2", lambda: Semaphore(2), timeout=0.05) as lock:
time.sleep(0.1)
time.sleep(0.2)
return bool(lock)
with ThreadPoolExecutor(10) as pool:
Expand Down Expand Up @@ -396,7 +396,7 @@ def _test1():

def _test2():
with NamedLock("_test2", lambda: Semaphore(2), timeout=0.05) as lock:
time.sleep(0.1)
time.sleep(0.2)
return bool(lock)

with ThreadPoolExecutor(10) as pool:
Expand Down

0 comments on commit 98987b0

Please sign in to comment.