mirror of https://github.com/fail2ban/fail2ban
increase test stack size to 128K (on some platforms min size is greater then 32K), closes gh-2597
parent
70e47c9621
commit
8694c54728
|
@ -469,14 +469,14 @@ class Fail2banClientServerBase(LogCaptureTestCase):
|
|||
|
||||
@with_foreground_server_thread(startextra={'f2b_local':(
|
||||
"[Thread]",
|
||||
"stacksize = 32"
|
||||
"stacksize = 128"
|
||||
"",
|
||||
)})
|
||||
def testStartForeground(self, tmp, startparams):
|
||||
# check thread options were set:
|
||||
self.pruneLog()
|
||||
self.execCmd(SUCCESS, startparams, "get", "thread")
|
||||
self.assertLogged("{'stacksize': 32}")
|
||||
self.assertLogged("{'stacksize': 128}")
|
||||
# several commands to server:
|
||||
self.execCmd(SUCCESS, startparams, "ping")
|
||||
self.execCmd(FAILED, startparams, "~~unknown~cmd~failed~~")
|
||||
|
|
Loading…
Reference in New Issue