mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-11 19:59:50 +08:00
test(gateway): compare timeout response numerically
This commit is contained in:
@@ -861,8 +861,8 @@ async fn gateway_updates_admin_provider_locally_with_trusted_admin_principal() {
|
|||||||
assert_eq!(payload["is_active"], false);
|
assert_eq!(payload["is_active"], false);
|
||||||
assert_eq!(payload["max_retries"], 6);
|
assert_eq!(payload["max_retries"], 6);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
payload["request_timeout"],
|
payload["request_timeout"].as_f64(),
|
||||||
aether_contracts::MAX_EXECUTION_REQUEST_TIMEOUT_SECS
|
Some(aether_contracts::MAX_EXECUTION_REQUEST_TIMEOUT_SECS as f64)
|
||||||
);
|
);
|
||||||
assert_eq!(payload["stream_first_byte_timeout"], 11.0);
|
assert_eq!(payload["stream_first_byte_timeout"], 11.0);
|
||||||
assert_eq!(payload["proxy"], json!({"url": "https://proxy.example"}));
|
assert_eq!(payload["proxy"], json!({"url": "https://proxy.example"}));
|
||||||
|
|||||||
Reference in New Issue
Block a user