Skip to content

Commit 0b303df

Browse files
authored
Fix failing test
1 parent 1b2049f commit 0b303df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/tester/tester_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"testing"
88
"time"
99

10+
"github.com/cschleiden/go-workflows/internal/sync"
1011
"github.com/cschleiden/go-workflows/workflow"
1112
"github.com/stretchr/testify/mock"
1213
"github.com/stretchr/testify/require"
@@ -37,7 +38,7 @@ func Test_WorkflowBlocked(t *testing.T) {
3738
}
3839

3940
func workflowBlocked(ctx workflow.Context) error {
40-
var f workflow.Future[int]
41+
f := sync.NewFuture[int]()
4142
f.Get(ctx)
4243

4344
return nil

0 commit comments

Comments
 (0)