Skip to content

Commit

Permalink
Fix matter profile switch test
Browse files Browse the repository at this point in the history
Its not clear if this fix is the correct fix or not.
  • Loading branch information
cjswedes committed Dec 11, 2024
1 parent 76c796d commit 8805f1a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ end

local function test_init_water_valve()
test.mock_device.add_test_device(mock_device_water_valve)
test.socket.device_lifecycle:__queue_receive({ mock_device_water_valve.id, "doConfigure" })
mock_device_water_valve:expect_metadata_update({ profile = "water-valve-level" })
mock_device_water_valve:expect_metadata_update({ provisioning_state = "PROVISIONED" })
end

local function test_init_parent_child_different_types()
Expand Down Expand Up @@ -394,6 +396,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()
Expand Down Expand Up @@ -456,5 +459,5 @@ test.register_coroutine_test(
end,
{ test_init = test_init_parent_child_unsupported_device_type }
)

--]]
test.run_registered_tests()

0 comments on commit 8805f1a

Please sign in to comment.