From 9d011bf9efb39cff318b0c2a3d067d9c11fc5e06 Mon Sep 17 00:00:00 2001 From: "hh.(SII)" Date: Sun, 27 Sep 2026 07:46:37 +0800 Subject: [PATCH] test(simulation): cover reset action contract --- crates/osdl-core/tests/integration.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/osdl-core/tests/integration.rs b/crates/osdl-core/tests/integration.rs index 9cc6281..13f2d1a 100644 --- a/crates/osdl-core/tests/integration.rs +++ b/crates/osdl-core/tests/integration.rs @@ -142,6 +142,7 @@ async fn test_simulation_world_uses_the_device_contract() { .expect("simulation device registered"); assert_eq!(device.adapter, "simulation"); assert_eq!(device.role.as_deref(), Some("heater")); + assert!(device.actions.iter().any(|action| action.name == "reset")); let result = handle .send_command(osdl_core::protocol::DeviceCommand {