Skip to content

Commit

Permalink
adjusting limit of open files
Browse files Browse the repository at this point in the history
  • Loading branch information
tpltnt committed Feb 7, 2018
1 parent 7e6a5eb commit c054897
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/allmydata/test/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import stat
import sys
import time
from platform import system
import mock


from twisted.trial import unittest
from twisted.internet import defer
from twisted.python import log
Expand All @@ -22,6 +22,14 @@
import allmydata.test.common_util as testutil


# avoid "too many open files" with macOS (only)
# * this does not seem to be an issue with Linux
# * appveyor complains about missing 'resource' module on Windows
if 'Darwin' == system():
import resource
resource.setrlimit(resource.RLIMIT_NOFILE, (2000, -1))


class LoggingMultiService(service.MultiService):
def log(self, msg, **kw):
pass
Expand Down

0 comments on commit c054897

Please sign in to comment.