From f99e0da017a6718d269ca5006ced0ec80e6ccee5 Mon Sep 17 00:00:00 2001 From: cangqiaoyuzhuo <850072022@qq.com> Date: Wed, 30 Oct 2024 09:49:29 +0800 Subject: [PATCH] chore: fix some comments (#21109) Signed-off-by: cangqiaoyuzhuo <850072022@qq.com> --- src/jobservice/api/handler_test.go | 2 +- src/jobservice/common/utils/utils_test.go | 2 +- src/jobservice/core/controller_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jobservice/api/handler_test.go b/src/jobservice/api/handler_test.go index 6821d807b..03e3a7476 100644 --- a/src/jobservice/api/handler_test.go +++ b/src/jobservice/api/handler_test.go @@ -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, diff --git a/src/jobservice/common/utils/utils_test.go b/src/jobservice/common/utils/utils_test.go index 0c6dddd4b..fde4dfad3 100644 --- a/src/jobservice/common/utils/utils_test.go +++ b/src/jobservice/common/utils/utils_test.go @@ -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") diff --git a/src/jobservice/core/controller_test.go b/src/jobservice/core/controller_test.go index 3e599c60e..81f901417 100644 --- a/src/jobservice/core/controller_test.go +++ b/src/jobservice/core/controller_test.go @@ -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)