test(worker): add retry and persistence checks and adapt attachment tests for async processing

This commit is contained in:
kk10
2026-11-16 12:41:11 +03:00
parent 4a6176fe81
commit eafc437933
9 changed files with 345 additions and 70 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ func TestConcurrentUploads(t *testing.T) {
mu.Lock()
statuses[resp.StatusCode]++
if resp.StatusCode == http.StatusCreated {
if resp.StatusCode == http.StatusAccepted {
latencies = append(latencies, latency)
}
mu.Unlock()
@@ -144,7 +144,7 @@ func TestConcurrentUploads(t *testing.T) {
t.Logf("HTTP %d: %d", status, n)
}
successful := statuses[http.StatusCreated]
successful := statuses[http.StatusAccepted]
t.Logf("successful RPS: %.2f", float64(successful)/elapsed.Seconds())
if len(latencies) > 0 {