Skip to content

Commit

Permalink
fix: Update the expected results of Test_versionGreaterThanOrEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny-Wei committed Feb 20, 2024
1 parent 3a4873b commit 4bed9ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/agent/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ func Test_versionGreaterThanOrEqual(t *testing.T) {
current: "4-43",
minimumVersion: minKernelVersionForAppArmorLSM,
expectedResult: false,
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (4) < the minimum testd version (%s)", minKernelVersionForAppArmorLSM)),
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (4) < the minimum version (%s)", minKernelVersionForAppArmorLSM)),
},
{
current: "4.13.117.23.bsk.10-amd64",
minimumVersion: minKernelVersionForAppArmorLSM,
expectedResult: false,
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (4.13.117) < the minimum testd version (%s)", minKernelVersionForAppArmorLSM)),
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (4.13.117) < the minimum version (%s)", minKernelVersionForAppArmorLSM)),
},
{
current: "4.14.117.bsk.10-amd64",
minimumVersion: minKernelVersionForAppArmorLSM,
expectedResult: false,
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (4.14.117) < the minimum testd version (%s)", minKernelVersionForAppArmorLSM)),
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (4.14.117) < the minimum version (%s)", minKernelVersionForAppArmorLSM)),
},
{
current: "4.15",
Expand Down Expand Up @@ -98,13 +98,13 @@ func Test_versionGreaterThanOrEqual(t *testing.T) {
current: "5.4.0-148-generic",
minimumVersion: minKernelVersionForBPFLSM,
expectedResult: false,
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (5.4.0) < the minimum testd version (%s)", minKernelVersionForBPFLSM)),
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (5.4.0) < the minimum version (%s)", minKernelVersionForBPFLSM)),
},
{
current: "5.6.135-2-velinux1-amd64",
minimumVersion: minKernelVersionForBPFLSM,
expectedResult: false,
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (5.6.135) < the minimum testd version (%s)", minKernelVersionForBPFLSM)),
expectedErr: fmt.Errorf(fmt.Sprintf("the current version (5.6.135) < the minimum version (%s)", minKernelVersionForBPFLSM)),
},
{
current: "5.10.134-13.1.al8.x86_64",
Expand Down

0 comments on commit 4bed9ec

Please sign in to comment.