Separate deletion and termination evictors in NodeController, and fix rate_limited_queue.go

This commit is contained in:
gmarek
2015-09-29 11:29:51 +02:00
parent 5d07236be6
commit a3723e2045
7 changed files with 17 additions and 15 deletions

View File

@@ -175,10 +175,10 @@ func TestTryOrdering(t *testing.T) {
order = append(order, value.Value)
return true, 0
})
if !reflect.DeepEqual(order, []string{"first", "third", "second"}) {
if !reflect.DeepEqual(order, []string{"first", "third"}) {
t.Fatalf("order was wrong: %v", order)
}
if count != 4 {
if count != 3 {
t.Fatalf("unexpected iterations: %d", count)
}
}