浏览代码

Added an integration test for #4427 (#4428)

* Added an integration test for #4427.

* Skip if not redis.

* fixup! Skip if not redis.
Omer Katz 7 年之前
父节点
当前提交
0de2dc8148
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      t/integration/test_canvas.py

+ 12 - 0
t/integration/test_canvas.py

@@ -111,6 +111,18 @@ class test_chain:
 
 class test_group:
 
+    @flaky
+    def test_empty_group_result(self, manager):
+        if not manager.app.conf.result_backend.startswith('redis'):
+            raise pytest.skip('Requires redis result backend.')
+
+        task = group([])
+        result = task.apply_async()
+
+        GroupResult.save(result)
+        task = GroupResult.restore(result.id)
+        assert task.results == []
+
     @flaky
     def test_parent_ids(self, manager):
         assert manager.inspect().ping()