mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-19 00:07:36 +00:00
fix: align official quota windows
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -271,8 +271,9 @@ async fn responses_should_passively_cache_rate_limit_headers() {
|
||||
.await
|
||||
.unwrap();
|
||||
let quota: Value = serde_json::from_str(&stored.0).unwrap();
|
||||
assert_eq!(quota["rate_limit"]["limit_reached"], true);
|
||||
assert_eq!(quota["rate_limit"]["reset_at"], reset_at);
|
||||
assert_eq!(quota["snapshots"][0]["source"], "core");
|
||||
assert_eq!(quota["snapshots"][0]["primary"]["limit_reached"], true);
|
||||
assert_eq!(quota["snapshots"][0]["primary"]["reset_at"], reset_at);
|
||||
assert_eq!(quota["credits"]["balance"], 12);
|
||||
assert_eq!(stored.1, 1);
|
||||
assert!(stored.2.is_some());
|
||||
|
||||
Reference in New Issue
Block a user