浏览代码

Use a different function to demonstrate AssertionError.

add() statements may take longer than general other commands.
Roger Hu 11 年之前
父节点
当前提交
8f3694bdc1
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      funtests/stress/stress/app.py
  2. 2 2
      funtests/stress/stress/suite.py

+ 1 - 1
funtests/stress/stress/app.py

@@ -116,7 +116,7 @@ def retries(self):
 
 
 @app.task
-def unicode():
+def print_unicode():
     print('hiöäüß')
 
 

+ 2 - 2
funtests/stress/stress/suite.py

@@ -20,7 +20,7 @@ from celery.utils.timeutils import humanize_seconds
 
 from .app import (
     marker, _marker, add, any_, exiting, kill, sleeping,
-    sleeping_ignore_limits, segfault, any_returning,
+    sleeping_ignore_limits, segfault, any_returning, print_unicode
 )
 from .data import BIG, SMALL
 from .fbi import FBI
@@ -168,7 +168,7 @@ class Suite(object):
         )
 
     def manyshort(self):
-        self.join(group(add.s(i, i) for i in range(1000))(),
+        self.join(group(print_unicode.s() for i in range(1000))(),
                   timeout=10, propagate=True)
 
     def runtest(self, fun, n=50, index=0, repeats=1):