mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
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:
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")
|
||||
|
||||
Reference in new issue
Block a user