summaryrefslogtreecommitdiff
path: root/local.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-08-17 13:18:04 +0100
committerNick White <git@njw.name>2021-08-17 13:18:04 +0100
commit48c68cfa7f18992b26765c7b67c52c11687ad74a (patch)
tree6194e21f03f381e1886534ca2ffd3830591bb461 /local.go
parent2bac685f600b97676de14bb850e5b087f0d54b83 (diff)
pipeline: use regular storage for tests, rather than a separate one
Diffstat (limited to 'local.go')
-rw-r--r--local.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/local.go b/local.go
index 58830c7..615f9a6 100644
--- a/local.go
+++ b/local.go
@@ -21,7 +21,6 @@ const qidOCR = "queueOCR"
const qidAnalyse = "queueAnalyse"
const qidTest = "queueTest"
const storageId = "storage"
-const testStorageId = "test"
// LocalConn is a simple implementation of the pipeliner interface
// that doesn't rely on any "cloud" services, instead doing everything
@@ -67,11 +66,6 @@ func (a *LocalConn) Init() error {
// TestInit does nothing for local connections
func (a *LocalConn) TestInit() error {
- err := os.Mkdir(filepath.Join(a.TempDir, testStorageId), 0700)
- if err != nil && !os.IsExist(err) {
- return fmt.Errorf("Error creating test storage directory: %v", err)
- }
-
return nil
}
@@ -140,11 +134,6 @@ func (a *LocalConn) WIPStorageId() string {
return storageId
}
-func (a *LocalConn) TestStorageId() string {
- return testStorageId
-}
-
-
func prefixwalker(dirpath string, prefix string, list *[]ObjMeta) filepath.WalkFunc {
return func(path string, info os.FileInfo, err error) error {
if err != nil {