예제 #1
0
func TestBlobsFileBackendCloseAndReopen(t *testing.T) {
	b := New("./tmp_blobsfile_test_reopen", 0, false, false)
	//check(err)
	defer os.RemoveAll("./tmp_blobsfile_test_reopen")
	backend.Test(t, b)
	b.Close()
	b2 := New("./tmp_blobsfile_test_reopen", 0, false, false)
	backend.TestReadOnly(t, b2)
}
예제 #2
0
func TestBlobsFileBackendCloseAndReopenAndReindexCompressed(t *testing.T) {
	b := New("./tmp_blobsfile_test_reindexc", 0, true, false)
	//check(err)
	defer os.RemoveAll("./tmp_blobsfile_test_reindexc")
	backend.Test(t, b)
	b.Close()
	b.Remove()
	b2 := New("./tmp_blobsfile_test_reindexc", 0, true, false)
	backend.TestReadOnly(t, b2)
}