test(worker): add retry and persistence checks and adapt attachment tests for async processing
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user