From 89b74d4e464a48bb261cde964b2b89442794412a Mon Sep 17 00:00:00 2001 From: Leo Dang Date: Wed, 14 Oct 2026 00:35:45 +0700 Subject: [PATCH] test(sdk): clone ObservationError where the interruption tests reuse it #13081 added assert_failed_connection_keeps_its_class, which passes its `class` argument by value to assert_observation twice. #13056 made ObservationError Clone but not Copy, so the test target no longer compiles (E0382, use of moved value: `class`) and `Build and test` fails on v1. The helper now clones the value for its first call. Refs #12731 Co-Authored-By: Claude Sonnet 5.5 --- crates/nemoclaw-sdk/tests/kubernetes_interruption.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nemoclaw-sdk/tests/kubernetes_interruption.rs b/crates/nemoclaw-sdk/tests/kubernetes_interruption.rs index 17175ffe8d3..0b538c64abf 100644 --- a/crates/nemoclaw-sdk/tests/kubernetes_interruption.rs +++ b/crates/nemoclaw-sdk/tests/kubernetes_interruption.rs @@ -416,7 +416,7 @@ async fn assert_failed_connection_keeps_its_class( assert_observation( deployment.apply(&original(), &uncancelled()).await, - class, + class.clone(), "the first apply", ); assert_runtime_applies(scripted, 1, "the first apply");