Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cangqiaoyuzhuo authored Oct 28, 2024
1 parent 91082af commit 3bce8d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jobservice/api/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (suite *APIHandlerTestSuite) TestGetPeriodicExecutionsWithQuery() {
assert.Equal(suite.T(), 200, code, "expected 200 ok but got %d", code)
}

// TestScheduledJobs ...
// TestGetJobs ...
func (suite *APIHandlerTestSuite) TestGetJobs() {
q := &query.Parameter{
PageNumber: 2,
Expand Down
2 changes: 1 addition & 1 deletion src/jobservice/common/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (suite *UtilsTestSuite) TestDirExists() {
assert.False(suite.T(), DirExists(""), "empty string should not exist")
}

// TestIsVaildPort tests IsVaildPort
// TestIsValidPort tests IsVaildPort
func (suite *UtilsTestSuite) TestIsValidPort() {
assert.True(suite.T(), IsValidPort(80), "80 should be a valid port")
assert.True(suite.T(), IsValidPort(65535), "65535 should be a valid port")
Expand Down
2 changes: 1 addition & 1 deletion src/jobservice/core/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func (suite *ControllerTestSuite) TestInvalidChecks() {
assert.NotNil(suite.T(), err, "invalid job name: error expected but got nil")
}

// TestScheduledJobs ...
// TestGetScheduledJobs ...
func (suite *ControllerTestSuite) TestGetScheduledJobs() {
extras := make(query.ExtraParameters)
extras.Set(query.ExtraParamKeyKind, job.KindScheduled)
Expand Down

0 comments on commit 3bce8d9

Please sign in to comment.