mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Merge pull request #123529 from thockin/go-workspaces
Go workspaces for k/k and k/staging/*
This commit is contained in:
@@ -904,11 +904,11 @@ func TestGetIndexFailureCount(t *testing.T) {
|
||||
wantResult: 2,
|
||||
},
|
||||
"valid maxint32 value": {
|
||||
pod: buildPod().indexFailureCount(strconv.Itoa(math.MaxInt32)).Pod,
|
||||
pod: buildPod().indexFailureCount(strconv.FormatInt(math.MaxInt32, 10)).Pod,
|
||||
wantResult: math.MaxInt32,
|
||||
},
|
||||
"too large value": {
|
||||
pod: buildPod().indexFailureCount(strconv.Itoa(math.MaxInt32 + 1)).Pod,
|
||||
pod: buildPod().indexFailureCount(strconv.FormatInt(math.MaxInt32+1, 10)).Pod,
|
||||
wantResult: 0,
|
||||
},
|
||||
"negative value": {
|
||||
|
||||
Reference in New Issue
Block a user