Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pbacsko committed Oct 15, 2024
1 parent 6270936 commit 9be1a49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cache/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1927,6 +1927,9 @@ func TestInitializeState(t *testing.T) {
assert.Check(t, !context.schedulerCache.IsPodOrphaned(podName2), "pod2 should not be orphaned")
assert.Check(t, context.schedulerCache.IsPodOrphaned(podName3), "pod3 should be orphaned")
assert.Check(t, context.schedulerCache.IsPodOrphaned(podForeignUID), "foreign pod should be orphaned")
assert.Check(t, context.schedulerCache.GetPod("foreignRunning") != nil, "foreign running pod is not in the cache")
assert.Check(t, context.schedulerCache.GetPod("foreignPending") == nil, "foreign pending pod should not be in the cache")
assert.Check(t, !context.schedulerCache.IsPodOrphaned("foreignRunning"), "foreign running pod should not be orphaned")

// pod1 is pending
task1 := context.getTask(appID1, podName1)
Expand Down

0 comments on commit 9be1a49

Please sign in to comment.