test(auth): report bounded harness status
CI / test (push) Failing after 40s

This commit is contained in:
m
2026-09-01 23:20:58 +03:00
parent ec7c4fef66
commit 2f639c9d6c
+1 -1
View File
@@ -98,7 +98,7 @@ func (c client) request(ctx context.Context, method, path string, body any, out
}
defer resp.Body.Close()
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
return errors.New("acceptance request denied")
return fmt.Errorf("acceptance request denied with status %d", resp.StatusCode)
}
if out != nil && json.NewDecoder(io.LimitReader(resp.Body, 1<<20)).Decode(out) != nil {
return errors.New("invalid acceptance response")