Commit 6bd9b33
committed
MessagesTests: allow postpone/suspended in BatchedMessages WaitForCompletion
The old hand-rolled QueueManager in this test used
MessagesDefaultMaxWaitForCompletion = TimeSpan.FromMinutes(1), which
made the in-memory wait long enough that the flow never actually
suspended -- so its WaitForCompletion (defaulting to
allowPostponeAndSuspended: false) was fine.
After switching to workflow.Message<string>(), the framework's
QueueManager runs with MaxWait = TimeSpan.Zero, so the flow does
transition through Postponed (Expires=0 once AppendMessage's
store-level Interrupt fires) before the watchdog re-invokes and the
flow Succeeds. WaitForCompletion was polling during that brief
Postponed window and throwing InvocationPostponedException.
Matches the pattern already used by PingPong and MultipleMessages.1 parent d146326 commit 6bd9b33
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
0 commit comments