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>
Upstream-commit: 5d8b88b114da7c40f04a95909a35287ae1dac37f
Component: engine
This commit is contained in:
Vincent Demeester
2018-04-23 10:14:07 +02:00
parent 0be67a18e5
commit 4a3d7068f3
@@ -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{