Skip to content

Commit

Permalink
[YUNIKORN-2765] fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SP12893678 committed Jul 23, 2024
1 parent bb6275b commit fc74eb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/common/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/si_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc74eb9

Please sign in to comment.