mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
tests: increase ulimit to 4096 (#4942)
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ if os.name == "nt":
|
||||
|
||||
import win32file # pylint: disable=import-error
|
||||
|
||||
win32file._setmaxstdio(2048)
|
||||
win32file._setmaxstdio(4096)
|
||||
|
||||
# Workaround for two bugs:
|
||||
#
|
||||
@@ -41,7 +41,7 @@ if os.name == "nt":
|
||||
else:
|
||||
import resource
|
||||
|
||||
resource.setrlimit(resource.RLIMIT_NOFILE, (2048, 2048))
|
||||
resource.setrlimit(resource.RLIMIT_NOFILE, (4096, 4096))
|
||||
|
||||
nproc_soft, nproc_hard = resource.getrlimit(resource.RLIMIT_NPROC)
|
||||
resource.setrlimit(resource.RLIMIT_NPROC, (nproc_hard, nproc_hard))
|
||||
|
||||
Reference in New Issue
Block a user