mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
fix(test): consolidate flaky scrub test (#1042)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
@@ -2549,6 +2549,15 @@ func TestGetNextRepository(t *testing.T) {
|
||||
So(err, ShouldNotBeNil)
|
||||
So(err, ShouldEqual, io.EOF)
|
||||
})
|
||||
|
||||
Convey("Return error", t, func() {
|
||||
err = os.Chmod(imgStore.RootDir(), 0o000)
|
||||
So(err, ShouldBeNil)
|
||||
_, err := imgStore.GetNextRepository(firstRepoName)
|
||||
So(err, ShouldNotBeNil)
|
||||
err = os.Chmod(imgStore.RootDir(), 0o755)
|
||||
So(err, ShouldBeNil)
|
||||
})
|
||||
}
|
||||
|
||||
func TestPutBlobChunkStreamed(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user