Skip to content

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

test: remove timing instrumentation from storage probe fixture

Steven Enamakele93e15b57b78
diff --git a/tests/fixtures/storage_probe_module/src/lib.rs b/tests/fixtures/storage_probe_module/src/lib.rs
index 3598a49e83..0cddd26c65 100644
--- a/tests/fixtures/storage_probe_module/src/lib.rs
+++ b/tests/fixtures/storage_probe_module/src/lib.rs
@@ -253,7 +253,6 @@ impl Interface for Probe {
}
_ => {}
}
- let t_start = std::time::Instant::now();
let (object, selector, request, confidential): (String, String, Value, bool) =
if member.as_str() == "PutBlob" {
// `[key, len]`: the body is built here, because a body that
@@ -278,14 +277,11 @@ impl Interface for Probe {
STORAGE,
)?
.with_timeout(std::time::Duration::from_secs(6));
- eprintln!("PROBE-TIMING built request in {:?}", t_start.elapsed());
- let t0 = std::time::Instant::now();
let reply: Result<Value> = if confidential {
proxy.call_confidential(&selector, (request,)).await
} else {
proxy.call(&selector, (request,)).await
};
- eprintln!("PROBE-TIMING call took {:?} -> {:?}", t0.elapsed(), reply.as_ref().map(|_| ()).map_err(|e| e.to_string()));
Ok(match reply {
Ok(value) => json!({ "ok": value }),
Err(Error::MethodFailed { name, message }) => {