File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,10 @@ func (env *testWorkflowEnvironmentImpl) setDataConverter(dataConverter converter
451
451
env .dataConverter = dataConverter
452
452
}
453
453
454
+ func (env * testWorkflowEnvironmentImpl ) setFailureConverter (failureConverter converter.FailureConverter ) {
455
+ env .failureConverter = failureConverter
456
+ }
457
+
454
458
func (env * testWorkflowEnvironmentImpl ) setContextPropagators (contextPropagators []ContextPropagator ) {
455
459
env .contextPropagators = contextPropagators
456
460
}
Original file line number Diff line number Diff line change @@ -214,6 +214,12 @@ func (t *TestActivityEnvironment) SetDataConverter(dataConverter converter.DataC
214
214
return t
215
215
}
216
216
217
+ // SetFailureConverter sets the failure converter.
218
+ func (t * TestActivityEnvironment ) SetFailureConverter (failureConverter converter.FailureConverter ) * TestActivityEnvironment {
219
+ t .impl .setFailureConverter (failureConverter )
220
+ return t
221
+ }
222
+
217
223
// SetIdentity sets identity.
218
224
func (t * TestActivityEnvironment ) SetIdentity (identity string ) * TestActivityEnvironment {
219
225
t .impl .setIdentity (identity )
@@ -649,6 +655,12 @@ func (e *TestWorkflowEnvironment) SetDataConverter(dataConverter converter.DataC
649
655
return e
650
656
}
651
657
658
+ // SetFailureConverter sets the failure converter.
659
+ func (t * TestWorkflowEnvironment ) SetFailureConverter (failureConverter converter.FailureConverter ) * TestWorkflowEnvironment {
660
+ t .impl .setFailureConverter (failureConverter )
661
+ return t
662
+ }
663
+
652
664
// SetContextPropagators sets context propagators.
653
665
func (e * TestWorkflowEnvironment ) SetContextPropagators (contextPropagators []ContextPropagator ) * TestWorkflowEnvironment {
654
666
e .impl .setContextPropagators (contextPropagators )
You can’t perform that action at this time.
0 commit comments