mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
pkg/kubelet/userns: Remove outdated test
When we were alocating the whole UID space, the first range was reserved to the host. Now we don't allocate the whole UID space, but just the range configured, so the first range doesn't point to [0;65535] anymore, so no need to test it is always set. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
This commit is contained in:
parent
4c81e5c9dc
commit
4180284dc9
@ -79,8 +79,6 @@ func TestUserNsManagerAllocate(t *testing.T) {
|
||||
m, err := MakeUserNsManager(testUserNsPodsManager)
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.Equal(t, true, m.isSet(0*65536), "m.isSet(0) should be true")
|
||||
|
||||
allocated, length, err := m.allocateOne("one")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, userNsLength, int(length), "m.isSet(%d).length=%v", allocated, length)
|
||||
|
Loading…
Reference in New Issue
Block a user