Commit cf0b54af authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Make the test more reliable

parent eb15624c
......@@ -33,7 +33,11 @@ TestCase {
function test_minimal() {
compare(devices.count, 3);
compare(devices.get(1).vendor, "Acme Corporation");
compare(devices.get(1).udi, "/org/kde/solid/fakehw/acpi_BAT0");
for (var i; i<devices.count; ++i) {
if ((devices.get(i).udi == "/org/kde/solid/fakehw/acpi_BAT0")) {
compare(devices.get(i).vendor, "Acme Corporation");
verify(devices.get(i).name, "Battery Bay");
}
}
}
}
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