fix testrules
This commit is contained in:
parent
b715c2788f
commit
bcb35bf9d7
@ -3071,7 +3071,7 @@ void TestRules::testLoopingRules()
|
|||||||
params.insert("thingId", m_mockThingId);
|
params.insert("thingId", m_mockThingId);
|
||||||
params.insert("actionTypeId", mockPowerStateTypeId);
|
params.insert("actionTypeId", mockPowerStateTypeId);
|
||||||
params.insert("params", QVariantList() << powerOffActionParam);
|
params.insert("params", QVariantList() << powerOffActionParam);
|
||||||
response = injectAndWait("Actions.ExecuteAction", params);
|
response = injectAndWait("Integrations.ExecuteAction", params);
|
||||||
verifyRuleExecuted(mockPowerActionTypeId);
|
verifyRuleExecuted(mockPowerActionTypeId);
|
||||||
|
|
||||||
cleanupMockHistory();
|
cleanupMockHistory();
|
||||||
@ -3080,7 +3080,7 @@ void TestRules::testLoopingRules()
|
|||||||
params.insert("thingId", m_mockThingId);
|
params.insert("thingId", m_mockThingId);
|
||||||
params.insert("actionTypeId", mockPowerStateTypeId);
|
params.insert("actionTypeId", mockPowerStateTypeId);
|
||||||
params.insert("params", QVariantList() << powerOnActionParam);
|
params.insert("params", QVariantList() << powerOnActionParam);
|
||||||
response = injectAndWait("Actions.ExecuteAction", params);
|
response = injectAndWait("Integrations.ExecuteAction", params);
|
||||||
verifyRuleExecuted(mockPowerActionTypeId);
|
verifyRuleExecuted(mockPowerActionTypeId);
|
||||||
|
|
||||||
// No need to check anything else. This test sets up a binding loop and if the core doesn't catch it it'll crash here.
|
// No need to check anything else. This test sets up a binding loop and if the core doesn't catch it it'll crash here.
|
||||||
|
|||||||
Reference in New Issue
Block a user