@@ -11,6 +11,7 @@ import (
11
11
"github.com/cschleiden/go-workflows/internal/converter"
12
12
"github.com/cschleiden/go-workflows/internal/core"
13
13
"github.com/cschleiden/go-workflows/internal/history"
14
+ "github.com/cschleiden/go-workflows/internal/logger"
14
15
"github.com/google/uuid"
15
16
"github.com/stretchr/testify/mock"
16
17
"github.com/stretchr/testify/require"
@@ -75,6 +76,7 @@ func Test_Client_SignalWorkflow(t *testing.T) {
75
76
ctx := context .Background ()
76
77
77
78
b := & backend.MockBackend {}
79
+ b .On ("Logger" ).Return (logger .NewDefaultLogger ())
78
80
b .On ("SignalWorkflow" , ctx , instanceID , mock .MatchedBy (func (event history.Event ) bool {
79
81
return event .Type == history .EventType_SignalReceived &&
80
82
event .Attributes .(* history.SignalReceivedAttributes ).Name == "test"
@@ -101,6 +103,7 @@ func Test_Client_SignalWorkflow_WithArgs(t *testing.T) {
101
103
input , _ := converter .DefaultConverter .To (arg )
102
104
103
105
b := & backend.MockBackend {}
106
+ b .On ("Logger" ).Return (logger .NewDefaultLogger ())
104
107
b .On ("SignalWorkflow" , ctx , instanceID , mock .MatchedBy (func (event history.Event ) bool {
105
108
return event .Type == history .EventType_SignalReceived &&
106
109
event .Attributes .(* history.SignalReceivedAttributes ).Name == "test" &&
0 commit comments