Speed up Workhorse upload tests
- Speed up
go test ./...
from 14s to 7s (on my machine) - Speed up
go test ./internal/upload
from 10s to 0.6s (idem) - Fix upload request timeouts: we were ignoring the deadlines by using an
http.Request
without a context - On upload timeouts, return status code 504 (Gateway Timeout) instead of 500 (Internal Server Error)
Edited by Jacob Vosmaer