diff options
author | 2022-01-29 12:16:12 +0100 | |
---|---|---|
committer | 2022-01-29 12:16:12 +0100 | |
commit | d9a778a795fe8c235077bc0e8d904ba5695c5191 (patch) | |
tree | 3c920f88b1735222d1c786120a7fa8e7accbdcee /internal/media/manager_test.go | |
parent | update go-store to latest (diff) | |
download | gotosocial-d9a778a795fe8c235077bc0e8d904ba5695c5191.tar.xz |
put store lock file in base of storage
Diffstat (limited to 'internal/media/manager_test.go')
-rw-r--r-- | internal/media/manager_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/media/manager_test.go b/internal/media/manager_test.go index caba1dd36..a9419754c 100644 --- a/internal/media/manager_test.go +++ b/internal/media/manager_test.go @@ -24,6 +24,7 @@ import ( "fmt" "io" "os" + "path" "testing" "time" @@ -284,10 +285,12 @@ func (suite *ManagerTestSuite) TestSimpleJpegProcessBlockingWithDiskStorage() { accountID := "01FS1X72SK9ZPW0J1QQ68BD264" - temp := fmt.Sprintf("%s/store", os.TempDir()) + temp := fmt.Sprintf("%s/gotosocial-test", os.TempDir()) defer os.RemoveAll(temp) - diskStorage, err := kv.OpenFile(temp, &storage.DiskConfig{}) + diskStorage, err := kv.OpenFile(temp, &storage.DiskConfig{ + LockFile: path.Join(temp, "store.lock"), + }) if err != nil { panic(err) } |