From 556b0aca79b881b232cdf52833b1454dd5e25630 Mon Sep 17 00:00:00 2001 From: cjswedes Date: Wed, 11 Dec 2024 10:07:40 -0600 Subject: [PATCH] Fix matter profile switch test Its not clear if this fix is the correct fix or not. --- .../src/test/test_matter_switch_device_types.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/SmartThings/matter-switch/src/test/test_matter_switch_device_types.lua b/drivers/SmartThings/matter-switch/src/test/test_matter_switch_device_types.lua index 4329cbce65..30cb59e2e2 100644 --- a/drivers/SmartThings/matter-switch/src/test/test_matter_switch_device_types.lua +++ b/drivers/SmartThings/matter-switch/src/test/test_matter_switch_device_types.lua @@ -394,6 +394,7 @@ local function test_init_parent_child_unsupported_device_type() }) end + test.register_coroutine_test( "Test profile change on init for onoff parent cluster as server", function() @@ -425,6 +426,8 @@ test.register_coroutine_test( test.register_coroutine_test( "Test profile change on init for water valve parent cluster as server", function() + test.socket.device_lifecycle:__queue_receive({ mock_device_water_valve.id, "doConfigure" }) + mock_device_water_valve:expect_metadata_update({ provisioning_state = "PROVISIONED" }) end, { test_init = test_init_water_valve } ) @@ -456,5 +459,5 @@ test.register_coroutine_test( end, { test_init = test_init_parent_child_unsupported_device_type } ) - +--]] test.run_registered_tests()