Skip to content

Commit

Permalink
resolve the comments
Browse files Browse the repository at this point in the history
Signed-off-by: wang yan <[email protected]>
  • Loading branch information
wy65701436 committed Apr 9, 2024
1 parent bfa656b commit 71b5bcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/controller/scan/base_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func (suite *ControllerTestSuite) TestScanControllerScan() {
func (suite *ControllerTestSuite) TestScanControllerStop() {
{
// artifact not provieded
suite.Require().Error(suite.c.Stop(context.TODO(), nil, "Vulnerability"))
suite.Require().Error(suite.c.Stop(context.TODO(), nil, "vulnerability"))
}

{
Expand All @@ -392,7 +392,7 @@ func (suite *ControllerTestSuite) TestScanControllerStop() {

ctx := orm.NewContext(nil, &ormtesting.FakeOrmer{})

suite.Require().NoError(suite.c.Stop(ctx, suite.artifact, "Vulnerability"))
suite.Require().NoError(suite.c.Stop(ctx, suite.artifact, "vulnerability"))
}

{
Expand All @@ -402,7 +402,7 @@ func (suite *ControllerTestSuite) TestScanControllerStop() {

ctx := orm.NewContext(nil, &ormtesting.FakeOrmer{})

suite.Require().Error(suite.c.Stop(ctx, suite.artifact, "Vulnerability"))
suite.Require().Error(suite.c.Stop(ctx, suite.artifact, "vulnerability"))
}

{
Expand All @@ -411,7 +411,7 @@ func (suite *ControllerTestSuite) TestScanControllerStop() {

ctx := orm.NewContext(nil, &ormtesting.FakeOrmer{})

suite.Require().Error(suite.c.Stop(ctx, suite.artifact, "Vulnerability"))
suite.Require().Error(suite.c.Stop(ctx, suite.artifact, "vulnerability"))
}
}

Expand Down

0 comments on commit 71b5bcf

Please sign in to comment.