Pārlūkot izejas kodu

Stress tests: adds logs and raising tasks

Ask Solem 11 gadi atpakaļ
vecāks
revīzija
54272aeba0
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      funtests/stress/stress/app.py

+ 10 - 0
funtests/stress/stress/app.py

@@ -124,6 +124,16 @@ def segfault():
     assert False, 'should not get here'
 
 
+@app.task
+def raising(exc=KeyError()):
+    raise exc
+
+
+@app.task
+def logs(msg):
+    print(msg)
+
+
 def marker(s, sep='-'):
     print('{0}{1}'.format(sep, s))
     while True: