Skip to content

Commit

Permalink
Stresstest for task always timing out
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Oct 10, 2014
1 parent 9ca6543 commit c01901d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions funtests/stress/stress/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from .app import (
marker, _marker, add, any_, exiting, kill, sleeping,
sleeping_ignore_limits, any_returning, print_unicode
sleeping_ignore_limits, any_returning
)
from .data import BIG, SMALL
from .fbi import FBI
Expand Down Expand Up @@ -264,9 +264,18 @@ class Suite(BaseSuite):

@testcase('all', 'green')
def manyshort(self):
self.join(group(print_unicode.s(i, i) for i in range(1000))(),
self.join(group(add.s(i, i) for i in range(1000))(),
timeout=10, propagate=True)

@testcase('all')
def always_timeout(self):
self.join(
group(sleeping.s(1).set(time_limit=0.1)
for _ in range(100)
)(),
timeout=10, propagate=True,
)

@testcase('all')
def termbysig(self):
self._evil_groupmember(kill)
Expand Down

0 comments on commit c01901d

Please sign in to comment.