Skip to content

Commit

Permalink
[YUNIKORN-2531] Create unit tests for AsyncRMCallback (#832)
Browse files Browse the repository at this point in the history
Closes: #832

Signed-off-by: Wilfred Spiegelenburg <[email protected]>
  • Loading branch information
pbacsko authored and wilfred-s committed May 14, 2024
1 parent db84a69 commit 4f8da23
Show file tree
Hide file tree
Showing 3 changed files with 629 additions and 11 deletions.
5 changes: 0 additions & 5 deletions pkg/cache/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,11 +664,6 @@ func (ctx *Context) IsPodFitNode(name, node string, allocate bool) error {
}

func (ctx *Context) IsPodFitNodeViaPreemption(name, node string, allocations []string, startIndex int) (int, bool) {
// assume minimal pods need killing if running in testing mode
if ctx.apiProvider.IsTestingMode() {
return startIndex, false
}

ctx.lock.RLock()
defer ctx.lock.RUnlock()
if pod := ctx.schedulerCache.GetPod(name); pod != nil {
Expand Down
Loading

0 comments on commit 4f8da23

Please sign in to comment.