Hi team,
We want to mock some of the commonly used sdk methods GetInfo
, GetLogger
inside activity. Without it we are facing following error due to missing interceptor in the test context.
panic: getActivityOutboundInterceptor: Not an activity context [recovered]
panic: getActivityOutboundInterceptor: Not an activity context
So, far I have explored WithActivityTask but the method is not exposed in sdk.
Is there any way to set the outbound interceptor for testing context ?