Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Sep 14, 2023
1 parent 40f129f commit 98a573b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions server/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func NewHandler(_ context.Context, svr *server.Server) (http.Handler, apiutil.AP
scheapi.APIPathPrefix+"/schedulers",
mcs.SchedulingServiceName,
[]string{http.MethodGet}),
// TODO: we need to consider the case that v1 api not support restful api.
// we might change the previous path parameters to query parameters.
),
negroni.Wrap(r)),
)
Expand Down
2 changes: 1 addition & 1 deletion tests/pdctl/operator/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func TestOperator(t *testing.T) {
})
}

func TestMicroservice(t *testing.T) {
func TestOperatorInMicroservice(t *testing.T) {
re := require.New(t)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
Expand Down
2 changes: 1 addition & 1 deletion tests/pdctl/scheduler/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ func mightExec(re *require.Assertions, cmd *cobra.Command, args []string, v inte
json.Unmarshal(output, v)
}

func TestMicroservice(t *testing.T) {
func TestSchedulerInMicroservice(t *testing.T) {
re := require.New(t)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
Expand Down

0 comments on commit 98a573b

Please sign in to comment.