From c05dade00a7cd106c939d8739b980fa88c531fe8 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 8 Feb 2018 23:33:40 +0100 Subject: [PATCH] fix commander test --- testing/scenarios/command_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testing/scenarios/command_test.go b/testing/scenarios/command_test.go index 000956bca..27165a368 100644 --- a/testing/scenarios/command_test.go +++ b/testing/scenarios/command_test.go @@ -33,7 +33,12 @@ func TestCommanderRemoveHandler(t *testing.T) { cmdPort := pickPort() clientConfig := &core.Config{ App: []*serial.TypedMessage{ - serial.ToTypedMessage(&commander.Config{Tag: "api"}), + serial.ToTypedMessage(&commander.Config{ + Tag: "api", + Service: []*serial.TypedMessage{ + serial.ToTypedMessage(&command.Config{}), + }, + }), serial.ToTypedMessage(&router.Config{ Rule: []*router.RoutingRule{ { @@ -42,7 +47,6 @@ func TestCommanderRemoveHandler(t *testing.T) { }, }, }), - serial.ToTypedMessage(&command.Config{}), }, Inbound: []*core.InboundHandlerConfig{ {