fixup: test: example device
- Fix the update progress loop in
test/common/exampledevice/example_device.cpp.
The update progress should be incremented there.
- Move a comment to the relevant lines in
test/common/exampledevice/example_updater_main.cpp
Tested: Unit tests pass.
Change-Id: I5fa908e1c6f95eaaa2710853c065fc341a30035f
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/test/common/exampledevice/example_device.cpp b/test/common/exampledevice/example_device.cpp
index 59acd39..78a46f5 100644
--- a/test/common/exampledevice/example_device.cpp
+++ b/test/common/exampledevice/example_device.cpp
@@ -89,7 +89,7 @@
// The percentage should be monotonic and increasing.
for (auto progress = 0; progress <= 100; progress += 20)
{
- setUpdateProgress(90);
+ setUpdateProgress(progress);
}
co_return true;