Browse code

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>

Vincent Demeester authored on 2018/04/20 18:59:18
Showing 1 changed files
... ...
@@ -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{