Skip to content

Commit 9bc9acd

Browse files
committed
remove diag.Backend from TestBackend
1 parent 1df01f7 commit 9bc9acd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backend/redis/expire_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ func Test_AutoExpiration(t *testing.T) {
5151
_, err = b.GetWorkflowInstanceState(ctx, wfi)
5252
require.ErrorIs(t, err, backend.ErrInstanceNotFound)
5353

54-
insts, err := b.GetWorkflowInstances(ctx, "", "", 1)
54+
// Check that the instance is gone from the list of instances
55+
insts, err := b.(*redisBackend).GetWorkflowInstances(ctx, "", "", 1)
5556
require.NoError(t, err)
5657
assert.Len(t, insts, 0)
5758

backend/test/backend.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@ import (
55

66
"github.com/cschleiden/go-workflows/backend"
77
"github.com/cschleiden/go-workflows/backend/history"
8-
"github.com/cschleiden/go-workflows/diag"
98
)
109

1110
type TestBackend interface {
1211
backend.Backend
13-
diag.Backend
1412

1513
GetFutureEvents(ctx context.Context) ([]*history.Event, error)
1614
}

0 commit comments

Comments
 (0)