mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-19 21:23:57 +00:00
switch modules to accept an InputHandler instead of the full router
This commit is contained in:
@@ -34,8 +34,10 @@ func TestModuleOutputFromRegistry(t *testing.T) {
|
||||
payload := "test"
|
||||
expected := "test"
|
||||
|
||||
router := test.GetNewTestRouter()
|
||||
|
||||
got, err := processorInstance.Process(t.Context(), common.WrappedPayload{
|
||||
Router: test.GetNewTestRouter(),
|
||||
InputHandler: router.HandleInput,
|
||||
Modules: map[string]common.Module{"test": &test.TestOutputModule{}},
|
||||
Payload: payload,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user