mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
spec: added support for mount request using hard link
This commit is contained in:
committed by
Ramkumar Chinchani
parent
f7829d6470
commit
a7c17b7c16
@@ -518,7 +518,8 @@ func TestNegativeCases(t *testing.T) {
|
||||
err = os.Chmod(dir, 0000) // remove all perms
|
||||
So(err, ShouldBeNil)
|
||||
if os.Geteuid() != 0 {
|
||||
So(func() { _ = il.InitRepo("test") }, ShouldPanic)
|
||||
err = il.InitRepo("test")
|
||||
So(err, ShouldNotBeNil)
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user