From 4a3d7068f3adb4b6fdc9145560c45af434780cf5 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 20 Apr 2018 11:59:18 +0200 Subject: [PATCH] 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 Upstream-commit: 5d8b88b114da7c40f04a95909a35287ae1dac37f Component: engine --- components/engine/pkg/idtools/idtools_unix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/pkg/idtools/idtools_unix_test.go b/components/engine/pkg/idtools/idtools_unix_test.go index e493b9e8d5..8c449013f2 100644 --- a/components/engine/pkg/idtools/idtools_unix_test.go +++ b/components/engine/pkg/idtools/idtools_unix_test.go @@ -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{