From beceddf474bacbe8038707efc3ca849132441adf Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 3 Nov 2026 21:49:58 +0000 Subject: [PATCH] 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 --- core/services/addons/hostops/transfer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/services/addons/hostops/transfer_test.go b/core/services/addons/hostops/transfer_test.go index b394e56d92..96f6a3c25c 100644 --- a/core/services/addons/hostops/transfer_test.go +++ b/core/services/addons/hostops/transfer_test.go @@ -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")