mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-29 01:25:03 -04:00
test(worker): canonicalize shared staging paths
Use the existing canonical temp directory helper for the combined HTTP and S3 staging fixture. macOS exposes its temp root through /var, which the ephemeral-root validation rejects as a symlink. Assisted-by: Codex:gpt-6
This commit is contained in:
1 parent
7e14d196e1
commit
9f1c64bbf9
1 file changed
+1
-1
@@ -60,7 +60,7 @@ func (*stagingObjectStore) List(context.Context, string) ([]string, error) {
|
||||
var _ = Describe("Worker exact-key staging release", func() {
|
||||
It("shares capacity between HTTP uploads and S3 control requests and releases both over the worker transport", func() {
|
||||
ctx := context.Background()
|
||||
dir := GinkgoT().TempDir()
|
||||
dir := canonicalWorkerTempDir()
|
||||
cfg := &Config{ModelsPath: filepath.Join(dir, "models")}
|
||||
stagingDir := filepath.Join(dir, "staging")
|
||||
cacheDir := cfg.stagingCacheDir()
|
||||
|
||||
Reference in new issue
Block a user