diff --git a/pkg/common/resource_test.go b/pkg/common/resource_test.go index f332ba30e..204086f29 100644 --- a/pkg/common/resource_test.go +++ b/pkg/common/resource_test.go @@ -806,7 +806,7 @@ func TestGetResource(t *testing.T) { expectedRes: nil, }, { - name: "invalid memery resources", + name: "invalid memory resources", resMap: map[string]string{ v1.ResourceMemory.String(): "64MiB", }, @@ -818,7 +818,7 @@ func TestGetResource(t *testing.T) { t.Run(tt.name, func(t *testing.T) { actualRes := GetResource(tt.resMap) if tt.expectedRes == nil { - assert.Equal(t, actualRes == nil, true) + assert.Assert(t, actualRes == nil) } else { assert.Equal(t, len(actualRes.Resources), len(tt.expectedRes)) if len(tt.expectedRes) > 0 { diff --git a/pkg/common/si_helper_test.go b/pkg/common/si_helper_test.go index 10caaeefc..63c603f7d 100644 --- a/pkg/common/si_helper_test.go +++ b/pkg/common/si_helper_test.go @@ -59,7 +59,7 @@ func TestCreateReleaseRequestForTask(t *testing.T) { assert.Equal(t, request.Releases.AllocationAsksToRelease[0].PartitionName, "default") assert.Equal(t, request.Releases.AllocationAsksToRelease[0].TerminationType, si.TerminationType_UNKNOWN_TERMINATION_TYPE) - request = CreateReleaseRequestForTask("app01", "task01", "task01", "default", "UNKNOW") + request = CreateReleaseRequestForTask("app01", "task01", "task01", "default", "UNKNOWN") assert.Assert(t, request.Releases != nil) assert.Assert(t, request.Releases.AllocationsToRelease != nil) assert.Assert(t, request.Releases.AllocationAsksToRelease != nil)