storagedriver: Adding an interface conformance test for Walk, cont.

This commit is contained in:
Collin Shoop
2021-06-28 15:52:19 -04:00
parent fbb45bd8a0
commit 70573f92c7
2 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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)
}