Make update and delete active queue methods

This commit is contained in:
Maciej Skoczeń
2024-08-20 09:21:06 +00:00
parent 9773a39b28
commit 3eefd62f94
3 changed files with 46 additions and 31 deletions

View File

@@ -1104,7 +1104,7 @@ func TestPriorityQueue_Update(t *testing.T) {
pInfo = pInfoFromBackoff
}
q.activeQ.underRLock(func(unlockedActiveQ unlockedActiveQueuer) {
q.activeQ.underRLock(func(unlockedActiveQ unlockedActiveQueueReader) {
if pInfoFromActive, exists := unlockedActiveQ.Get(newQueuedPodInfoForLookup(newPod)); exists {
if tt.wantQ != activeQ {
t.Errorf("expected pod %s not to be queued to activeQ, but it was", newPod.Name)