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>
| ... | ... |
@@ -284,7 +284,7 @@ func TestGetRootUIDGID(t *testing.T) {
|
| 284 | 284 |
|
| 285 | 285 |
uid, gid, err := GetRootUIDGID(uidMap, gidMap) |
| 286 | 286 |
assert.Check(t, err) |
| 287 |
- assert.Check(t, is.Equal(os.Getegid(), uid)) |
|
| 287 |
+ assert.Check(t, is.Equal(os.Geteuid(), uid)) |
|
| 288 | 288 |
assert.Check(t, is.Equal(os.Getegid(), gid)) |
| 289 | 289 |
|
| 290 | 290 |
uidMapError := []IDMap{
|