Skip to content

Commit

Permalink
feat: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehao committed Oct 19, 2023
1 parent f4823a5 commit 816793a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common/utils/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var (
// DBCliApp the name of mock database app.
DBCliApp MockAppName = "db_cli-test"

// CoordinatorApiApp the name of mock coordinator app.
CoordinatorApiApp MockAppName = "coordinator-api-test"
// CoordinatorAPIApp the name of mock coordinator app.
CoordinatorAPIApp MockAppName = "coordinator-api-test"
// CoordinatorCronApp the name of mock coordinator cron app.
CoordinatorCronApp MockAppName = "coordinator-cron-test"

Expand Down
2 changes: 1 addition & 1 deletion coordinator/cmd/api/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func init() {
return utils.LogSetup(ctx)
}
// Register `coordinator-test` app for integration-test.
utils.RegisterSimulation(app, utils.CoordinatorApiApp)
utils.RegisterSimulation(app, utils.CoordinatorAPIApp)
}

func action(ctx *cli.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion coordinator/cmd/api/app/mock_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewCoordinatorApp(base *docker.App, file string) *CoordinatorApp {

// RunApp run coordinator-test child process by multi parameters.
func (c *CoordinatorApp) RunApp(t *testing.T, args ...string) {
c.AppAPI = cmd.NewCmd(string(utils.CoordinatorApiApp), append(c.args, args...)...)
c.AppAPI = cmd.NewCmd(string(utils.CoordinatorAPIApp), append(c.args, args...)...)
c.AppAPI.RunApp(func() bool { return c.AppAPI.WaitResult(t, time.Second*20, "Start coordinator successfully") })
}

Expand Down

0 comments on commit 816793a

Please sign in to comment.