Skip to content

Commit 5692670

Browse files
committed
add EmitUserMetric to stubExecutionHelper
host.ExecutionHelper gained EmitUserMetric in chainlink-common #1924.
1 parent d112624 commit 5692670

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core/services/workflows/v2/confidential_module_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424

2525
sdkpb "github.com/smartcontractkit/chainlink-protos/cre/go/sdk"
2626
valuespb "github.com/smartcontractkit/chainlink-protos/cre/go/values/pb"
27+
wfpb "github.com/smartcontractkit/chainlink-protos/workflows/go/v2"
2728
)
2829

2930
// stubExecutionHelper implements host.ExecutionHelper for testing.
@@ -43,6 +44,9 @@ func (s *stubExecutionHelper) GetWorkflowExecutionID() string { return s.executi
4344
func (s *stubExecutionHelper) GetNodeTime() time.Time { return time.Time{} }
4445
func (s *stubExecutionHelper) GetDONTime() (time.Time, error) { return time.Time{}, nil }
4546
func (s *stubExecutionHelper) EmitUserLog(string) error { return nil }
47+
func (s *stubExecutionHelper) EmitUserMetric(context.Context, *wfpb.WorkflowUserMetric) error {
48+
return nil
49+
}
4650

4751
func TestParseWorkflowAttributes(t *testing.T) {
4852
t.Run("valid JSON with all fields", func(t *testing.T) {

0 commit comments

Comments
 (0)