Commit 9887f590 authored by David Redondo's avatar David Redondo 🏎
Browse files

Fix dbusApi test

The returned map also contains infos about containers and objects.
parent 0be080b1
...@@ -158,7 +158,7 @@ void KStatsTest::dbusApi() ...@@ -158,7 +158,7 @@ void KStatsTest::dbusApi()
auto pendingSensors = iface.allSensors(); auto pendingSensors = iface.allSensors();
pendingSensors.waitForFinished(); pendingSensors.waitForFinished();
auto sensors = pendingSensors.value(); auto sensors = pendingSensors.value();
QVERIFY(sensors.count() == 2); QVERIFY(sensors.count() == 4);
// test metadata // test metadata
QCOMPARE(sensors["testContainer/testObject/property1"].name, "Some Sensor Name 1"); QCOMPARE(sensors["testContainer/testObject/property1"].name, "Some Sensor Name 1");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment