-func createBadPath(t *testing.T) (badpath string) {
- tempdir, err := ioutil.TempDir("", "bad")
- if err != nil {
- t.Fatalf("Could not create temporary directory for bad path: %v", err)
- }
- badpath = path.Join(tempdir, "bad")
- return
-}
-
-func destroyBadPath(t *testing.T, badpath string) () {
- tempdir := path.Join(badpath, "..")
- err := os.Remove(tempdir)
+func TestPutAndGetBlocks_ErrorDuringGetCollectionsBadWriteTo(t *testing.T) {
+ badpath, err := arvadostest.CreateBadPath()