Browse Source

fix test with new init function signature

Shelikhoo 4 years ago
parent
commit
d16f00cc51
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/router/command/command_test.go

+ 1 - 1
app/router/command/command_test.go

@@ -213,7 +213,7 @@ func TestSerivceTestRoute(t *testing.T) {
 	r := new(router.Router)
 	mockCtl := gomock.NewController(t)
 	defer mockCtl.Finish()
-	common.Must(r.Init(&router.Config{
+	common.Must(r.Init(context.TODO(), &router.Config{
 		Rule: []*router.RoutingRule{
 			{
 				InboundTag: []string{"in"},