File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ async fn spawn_server() -> String {
2727 config. use_memory_store = true ;
2828 config. registry_cid_path = None ;
2929 config. jwt_secret = Some ( "test-secret-123" . to_string ( ) ) ;
30+ // Bump production-default 100 RPS rate limit out of the way for
31+ // tests. Matches the override in `tests/common/mod.rs`,
32+ // `tests/v7_hamt_tests.rs`, and `tests/f8_buffered_download_tests.rs`.
33+ // With `auth_enabled=false` every request hits the same "anonymous"
34+ // bucket; rotation tests put multiple encrypted objects + rotate,
35+ // each fanning out to several HTTP calls.
36+ config. rate_limit_rps = 1_000_000 ;
3037
3138 let state = Arc :: new ( AppState :: new ( config. clone ( ) ) . await . unwrap ( ) ) ;
3239 let app = routes:: create_router ( state) ;
Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ async fn spawn_server() -> String {
2020 config. use_memory_store = true ;
2121 config. registry_cid_path = None ;
2222 config. jwt_secret = Some ( "test-secret-v7" . to_string ( ) ) ;
23+ // Bump the production-default 100 RPS keyed rate limit out of the
24+ // way for tests. With auth_enabled=false every request hits the
25+ // same "anonymous" bucket, and the v7 paginated test seeds 64
26+ // files in a tight loop where each `put_object_flat` issues
27+ // multiple requests (forest read + blob put + forest persist).
28+ // 64×~3 = 192 requests in <1s easily trips the default. Matches
29+ // the override already used in `tests/common/mod.rs` and
30+ // `tests/f8_buffered_download_tests.rs`. The production rate-
31+ // limit semantics are exercised separately in unit tests; this
32+ // E2E test only cares about correctness.
33+ config. rate_limit_rps = 1_000_000 ;
2334
2435 let state = Arc :: new ( AppState :: new ( config. clone ( ) ) . await . unwrap ( ) ) ;
2536 let app = routes:: create_router ( state) ;
You can’t perform that action at this time.
0 commit comments