mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix typo in idtools tests
It should check `os.Geteuid` with `uid` instead of `os.Getegid`. On the container (where the tests run), the uid and gid seems to be the same, thus this doesn't fail. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
57142e89be
commit
5d8b88b114
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ func TestGetRootUIDGID(t *testing.T) {
|
|||
|
||||
uid, gid, err := GetRootUIDGID(uidMap, gidMap)
|
||||
assert.Check(t, err)
|
||||
assert.Check(t, is.Equal(os.Getegid(), uid))
|
||||
assert.Check(t, is.Equal(os.Geteuid(), uid))
|
||||
assert.Check(t, is.Equal(os.Getegid(), gid))
|
||||
|
||||
uidMapError := []IDMap{
|
||||
|
|
Loading…
Reference in a new issue