Make TestWorkflowService#continueAsNew respect headers of the original StartWorkflowExecutionRequest
Addresses
@@ -874,6 +874,9 @@ public final class TestWorkflowService extends WorkflowServiceGrpc.WorkflowServi
if (previousRunStartRequest.hasRetryPolicy()) {
startRequestBuilder.setRetryPolicy(previousRunStartRequest.getRetryPolicy());
}
+ if (previousRunStartRequest.hasHeader()) {
+ startRequestBuilder.setHeader(previousRunStartRequest.getHeader());
+ }
if (a.hasInput()) {
startRequestBuilder.setInput(a.getInput());
}
