fix(test): consolidate flaky scrub test (#1042)

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
peusebiu
2022-12-07 21:04:33 +02:00
committed by GitHub
parent d78f1d962f
commit cbf88bd668
2 changed files with 54 additions and 0 deletions
+9
View File
@@ -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) {