Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(e2e): update image assertion logic in session restart test

Steven Enamakeld855dc4e1657
diff --git a/tests/native_channel_session_restart_e2e.rs b/tests/native_channel_session_restart_e2e.rs
index cbe3be0d9f..154a7a77a1 100644
--- a/tests/native_channel_session_restart_e2e.rs
+++ b/tests/native_channel_session_restart_e2e.rs
@@ -685,11 +685,11 @@ fn assert_model_received_typed_image(request: &Value) {
collect_shape(item, types, fields);
}
}
- Value::Object(fields) => {
- if let Some(kind) = fields.get("type").and_then(Value::as_str) {
+ Value::Object(object) => {
+ if let Some(kind) = object.get("type").and_then(Value::as_str) {
types.push(kind.to_owned());
}
- for (name, item) in fields {
+ for (name, item) in object {
fields.push(name.clone());
collect_shape(item, types, fields);
}