Parcourir la source

devmapper: the tests are fast enough that we no longer need a workaround to avoid timeouts

Solomon Hykes il y a 11 ans
Parent
commit
cad913c57b
1 fichiers modifiés avec 0 ajouts et 7 suppressions
  1. 0 7
      runtime_test.go

+ 0 - 7
runtime_test.go

@@ -193,13 +193,6 @@ func setupBaseImage() {
 		log.Fatalf("Unable to create a runtime for tests:", err)
 		log.Fatalf("Unable to create a runtime for tests:", err)
 	}
 	}
 
 
-	// Create a device, which triggers the initiation of the base FS
-	// This avoids other tests doing this and timing out
-	deviceset := devmapper.NewDeviceSet(unitTestStoreBase)
-	if err := deviceset.AddDevice("init", ""); err != nil {
-		log.Fatalf("Unable to setup the base image: %s", err)
-	}
-
 	// Create the "Server"
 	// Create the "Server"
 	srv := &Server{
 	srv := &Server{
 		runtime:     runtime,
 		runtime:     runtime,