Skip to content

Commit 1460ea0

Browse files
committed
Fix test setup
1 parent b54e9cb commit 1460ea0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

backend/redis/redis_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import (
1212
)
1313

1414
func Test_RedisBackend(t *testing.T) {
15+
if testing.Short() {
16+
t.Skip()
17+
}
18+
1519
test.BackendTest(t, func() backend.Backend {
1620
address := "localhost:6379"
1721
user := ""

client/client_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/cschleiden/go-workflows/internal/converter"
1212
"github.com/cschleiden/go-workflows/internal/core"
1313
"github.com/cschleiden/go-workflows/internal/history"
14+
"github.com/cschleiden/go-workflows/internal/logger"
1415
"github.com/google/uuid"
1516
"github.com/stretchr/testify/mock"
1617
"github.com/stretchr/testify/require"
@@ -75,6 +76,7 @@ func Test_Client_SignalWorkflow(t *testing.T) {
7576
ctx := context.Background()
7677

7778
b := &backend.MockBackend{}
79+
b.On("Logger").Return(logger.NewDefaultLogger())
7880
b.On("SignalWorkflow", ctx, instanceID, mock.MatchedBy(func(event history.Event) bool {
7981
return event.Type == history.EventType_SignalReceived &&
8082
event.Attributes.(*history.SignalReceivedAttributes).Name == "test"
@@ -101,6 +103,7 @@ func Test_Client_SignalWorkflow_WithArgs(t *testing.T) {
101103
input, _ := converter.DefaultConverter.To(arg)
102104

103105
b := &backend.MockBackend{}
106+
b.On("Logger").Return(logger.NewDefaultLogger())
104107
b.On("SignalWorkflow", ctx, instanceID, mock.MatchedBy(func(event history.Event) bool {
105108
return event.Type == history.EventType_SignalReceived &&
106109
event.Attributes.(*history.SignalReceivedAttributes).Name == "test" &&

0 commit comments

Comments
 (0)