|
| 1 | +using Cleipnir.ResilientFunctions; |
1 | 2 | using Cleipnir.ResilientFunctions.Domain; |
2 | 3 | using Cleipnir.ResilientFunctions.Helpers; |
3 | 4 | using Cleipnir.ResilientFunctions.Messaging; |
@@ -126,7 +127,7 @@ await Should.ThrowAsync<FatalWorkflowException<TimeoutException>>(() => |
126 | 127 | controlPanel.Status.ShouldBe(Status.Failed); |
127 | 128 |
|
128 | 129 | FailingUnitActionFlow.ShouldThrow = false; |
129 | | - await controlPanel.Restart(); |
| 130 | + await controlPanel.ScheduleRestart().Completion(); |
130 | 131 |
|
131 | 132 | await controlPanel.Refresh(); |
132 | 133 | controlPanel.Status.ShouldBe(Status.Succeeded); |
@@ -176,7 +177,7 @@ await Should.ThrowAsync<FatalWorkflowException<TimeoutException>>(() => |
176 | 177 | controlPanel.Status.ShouldBe(Status.Failed); |
177 | 178 |
|
178 | 179 | FailingUnitFuncFlow.ShouldThrow = false; |
179 | | - await controlPanel.Restart(); |
| 180 | + await controlPanel.ScheduleRestart().Completion(); |
180 | 181 |
|
181 | 182 | await controlPanel.Refresh(); |
182 | 183 | controlPanel.Status.ShouldBe(Status.Succeeded); |
@@ -226,7 +227,7 @@ await Should.ThrowAsync<FatalWorkflowException<TimeoutException>>(() => |
226 | 227 | controlPanel.Status.ShouldBe(Status.Failed); |
227 | 228 |
|
228 | 229 | FailingUnitParamlessFlow.ShouldThrow = false; |
229 | | - await controlPanel.Restart(); |
| 230 | + await controlPanel.ScheduleRestart().Completion(); |
230 | 231 |
|
231 | 232 | await controlPanel.Refresh(); |
232 | 233 | controlPanel.Status.ShouldBe(Status.Succeeded); |
|
0 commit comments