mirror of
https://github.com/distribution/distribution.git
synced 2025-09-16 15:21:37 +00:00
storagedriver: Adding an interface conformance test for Walk, cont.
This commit is contained in:
@@ -53,7 +53,7 @@ func (wc *walkConformance) isDir(path string) bool {
|
||||
return isDir
|
||||
}
|
||||
|
||||
func Run(driver storagedriver.StorageDriver, t *testing.T) error {
|
||||
func TestWalk(driver storagedriver.StorageDriver, t *testing.T) error {
|
||||
wc := walkConformance{driver: driver}
|
||||
defer func() {
|
||||
err := wc.cleanup()
|
||||
|
@@ -241,7 +241,7 @@ func TestStorageClass(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func TestConformance(t *testing.T) {
|
||||
func TestWalk(t *testing.T) {
|
||||
if skipS3() != "" {
|
||||
t.Skip(skipS3())
|
||||
}
|
||||
@@ -257,7 +257,7 @@ func TestConformance(t *testing.T) {
|
||||
t.Fatalf("unexpected error creating driver with standard storage: %v", err)
|
||||
}
|
||||
|
||||
err = conformance.Run(standardDriver, t)
|
||||
err = conformance.TestWalk(standardDriver, t)
|
||||
if err != nil {
|
||||
t.Fatalf("conformance failed: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user