mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-02 14:23:54 +00:00
remove unused variables in scheduler api types
This commit is contained in:
@@ -17,7 +17,6 @@ limitations under the License.
|
||||
package factory
|
||||
|
||||
import (
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -59,13 +58,13 @@ func TestValidatePriorityConfigOverFlow(t *testing.T) {
|
||||
expected bool
|
||||
}{
|
||||
{
|
||||
description: "one of the weights is MaxInt64",
|
||||
configs: []priorities.PriorityConfig{{Weight: math.MaxInt64}, {Weight: 5}},
|
||||
description: "one of the weights is MaxTotalPriority(MaxInt64)",
|
||||
configs: []priorities.PriorityConfig{{Weight: api.MaxTotalPriority}, {Weight: 5}},
|
||||
expected: true,
|
||||
},
|
||||
{
|
||||
description: "after multiplication with MaxPriority the weight is larger than MaxWeight",
|
||||
configs: []priorities.PriorityConfig{{Weight: math.MaxInt64/api.MaxPriority + api.MaxPriority}, {Weight: 5}},
|
||||
configs: []priorities.PriorityConfig{{Weight: api.MaxWeight + api.MaxPriority}, {Weight: 5}},
|
||||
expected: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user