We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f420ded commit a7ae400Copy full SHA for a7ae400
1 file changed
core/src/test_help/mod.rs
@@ -1068,10 +1068,19 @@ impl WorkerExt for Worker {
1068
);
1069
},
1070
async {
1071
- assert_matches!(
1072
- self.poll_workflow_activation().await.unwrap_err(),
1073
- PollError::ShutDown
1074
- );
+ loop {
+ match self.poll_workflow_activation().await {
+ Err(PollError::ShutDown) => break,
+ Ok(a) if a.is_only_eviction() => {
1075
+ self.complete_workflow_activation(WorkflowActivationCompletion::empty(
1076
+ a.run_id,
1077
+ ))
1078
+ .await
1079
+ .unwrap();
1080
+ }
1081
+ o => panic!("Unexpected activation while draining: {:?}", o),
1082
1083
1084
}
1085
1086
self.finalize_shutdown().await;
0 commit comments