chore: fix some comments (#21109)

Signed-off-by: cangqiaoyuzhuo <850072022@qq.com>
This commit is contained in:
cangqiaoyuzhuo 2024-10-30 09:49:29 +08:00 committed by GitHub
parent 91082af39f
commit f99e0da017
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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")

View File

@ -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)