Explorar el Código

fix test with new init function signature

Shelikhoo hace 4 años
padre
commit
d16f00cc51
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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"},