Skip to content

Commit 910cdd5

Browse files
committed
launch ctx in tests where needed
1 parent 173c850 commit 910cdd5

File tree

2 files changed

+209
-202
lines changed

2 files changed

+209
-202
lines changed

dbos/serialization_test.go

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ import (
1111
"github.com/stretchr/testify/require"
1212
)
1313

14-
/** Test serialization and deserialization
15-
[x] Built in types
16-
[x] User defined types (structs)
17-
[x] Workflow inputs/outputs
18-
[x] Step inputs/outputs
19-
[x] Direct handlers, polling handler, list workflows results, get step infos
20-
[x] Set/get event with user defined types
21-
*/
22-
2314
// Builtin types
2415
func encodingStepBuiltinTypes(_ context.Context, input int) (int, error) {
2516
return input, errors.New("step error")
@@ -76,6 +67,9 @@ func TestWorkflowEncoding(t *testing.T) {
7667
RegisterWorkflow(executor, encodingWorkflowBuiltinTypes)
7768
RegisterWorkflow(executor, encodingWorkflowStruct)
7869

70+
err := Launch(executor)
71+
require.NoError(t, err)
72+
7973
t.Run("BuiltinTypes", func(t *testing.T) {
8074
// Test a workflow that uses a built-in type (string)
8175
directHandle, err := RunWorkflow(executor, encodingWorkflowBuiltinTypes, "test")

0 commit comments

Comments
 (0)