test(addons): wait for the expiry audit in the transfer spec

The handle leaves the table before the audit hook runs, so a loaded
machine could read the list too early. Wait for the outcome.

Assisted-by: Claude:claude-sonnet-5-5 go
This commit is contained in:
Ettore Di Giacinto committed 2026-11-03 21:50:00 +00:00
1 parent 8aa81f1401
commit beceddf474
1 file changed
+1 -1
@@ -255,7 +255,7 @@ var _ = Describe("connector file transfer by handle", func() {
Eventually(f.t.Live, "2s", "20ms").Should(BeZero())
code, _ = f.put("h", 7, []byte("x"), false)
Expect(code).To(Equal(http.StatusNotFound))
Expect(f.outcomes()).To(HaveLen(1))
Eventually(f.outcomes, "2s", "20ms").Should(HaveLen(1))
Expect(f.outcomes()[0].Result).To(Equal(TransferExpired))
tmp, _ := filepath.Glob(filepath.Join(f.dir, "owner-cache", "tmp", "*"))
Expect(tmp).To(BeEmpty(), "no partial file is left")