mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
chore: fix some comments (#21109)
Signed-off-by: cangqiaoyuzhuo <850072022@qq.com>
This commit is contained in:
parent
91082af39f
commit
f99e0da017
@ -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,
|
||||
|
@ -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")
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user