Return empty task-token on no-task
To match the SWF documentation, an empty task is one where the task-token is the empty string, rather than being a nonexistant key Signed-off-by: Laurie O <laurie_opperman@hotmail.com>
This commit is contained in:
parent
a89c150627
commit
002683fd13
3 changed files with 12 additions and 6 deletions
|
|
@ -35,14 +35,14 @@ def test_poll_for_activity_task_when_one():
|
|||
def test_poll_for_activity_task_when_none():
|
||||
conn = setup_workflow()
|
||||
resp = conn.poll_for_activity_task("test-domain", "activity-task-list")
|
||||
resp.should.equal({"startedEventId": 0})
|
||||
resp.should.equal({"startedEventId": 0, "taskToken": ""})
|
||||
|
||||
|
||||
@mock_swf_deprecated
|
||||
def test_poll_for_activity_task_on_non_existent_queue():
|
||||
conn = setup_workflow()
|
||||
resp = conn.poll_for_activity_task("test-domain", "non-existent-queue")
|
||||
resp.should.equal({"startedEventId": 0})
|
||||
resp.should.equal({"startedEventId": 0, "taskToken": ""})
|
||||
|
||||
|
||||
# CountPendingActivityTasks endpoint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue