Skip to content

Commit 14f73be

Browse files
committed
no interface signature
1 parent 9676054 commit 14f73be

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

dbos/serialization_test.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -320,15 +320,6 @@ func runMapsTests(t *testing.T, executor DBOSContext) {
320320
})
321321
}
322322

323-
func runInterfaceFieldsTests(t *testing.T, executor DBOSContext) {
324-
t.Run("InterfaceFieldsStruct", func(t *testing.T) {
325-
inp := WithInterfaces{A: map[string]any{"k": "v"}}
326-
h2, err := RunWorkflow(executor, serializerWithInterfacesWorkflow, inp)
327-
require.NoError(t, err)
328-
testRoundTrip[WithInterfaces, WithInterfaces](t, executor, h2, inp)
329-
})
330-
}
331-
332323
func runCustomTypesTests(t *testing.T, executor DBOSContext) {
333324
t.Run("CustomTypes", func(t *testing.T) {
334325
mi := MyInt(7)
@@ -382,11 +373,6 @@ func (t *TwiceInt) UnmarshalJSON(b []byte) error {
382373
return nil
383374
}
384375

385-
// Struct with interface fields
386-
type WithInterfaces struct {
387-
A any
388-
}
389-
390376
// Test data structures for DBOS integration testing
391377
type TestData struct {
392378
Message string
@@ -444,7 +430,6 @@ var (
444430
serializerIntPtrWorkflow = makeTestWorkflow[*int]()
445431
serializerIntSliceWorkflow = makeTestWorkflow[[]int]()
446432
serializerStringIntMapWorkflow = makeTestWorkflow[map[string]int]()
447-
serializerWithInterfacesWorkflow = makeTestWorkflow[WithInterfaces]()
448433
serializerMyIntWorkflow = makeTestWorkflow[MyInt]()
449434
serializerMyStringWorkflow = makeTestWorkflow[MyString]()
450435
serializerMyStringSliceWorkflow = makeTestWorkflow[[]MyString]()
@@ -613,7 +598,6 @@ func TestSerializer(t *testing.T) {
613598
RegisterWorkflow(executor, serializerIntPtrWorkflow)
614599
RegisterWorkflow(executor, serializerIntSliceWorkflow)
615600
RegisterWorkflow(executor, serializerStringIntMapWorkflow)
616-
RegisterWorkflow(executor, serializerWithInterfacesWorkflow)
617601
RegisterWorkflow(executor, serializerMyIntWorkflow)
618602
RegisterWorkflow(executor, serializerMyStringWorkflow)
619603
RegisterWorkflow(executor, serializerMyStringSliceWorkflow)
@@ -848,9 +832,6 @@ func TestSerializer(t *testing.T) {
848832
// Maps, including non-string keys
849833
runMapsTests(t, executor)
850834

851-
// Struct with interface fields
852-
runInterfaceFieldsTests(t, executor)
853-
854835
// Custom defined types
855836
runCustomTypesTests(t, executor)
856837

0 commit comments

Comments
 (0)