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:
localai-org-maint-bot committed 2026-09-27 03:05:13 +00:00
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()