mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Fix a bug in VUR VTS test.
The logic is to check whether each element is not the same as previous element. We forgot to increase i. Test: Presubmit Bug: 326987403 Change-Id: I5cab61a86092fb14d17551a533e8cdaff1abfee5
This commit is contained in:
@@ -640,13 +640,12 @@ TEST_P(VtsHalAutomotiveVehicleTargetTest, subscribe_enableVurIfSupported) {
|
||||
size_t i = 0;
|
||||
float previousValue;
|
||||
for (const auto& [_, value] : valuesByTimestamp) {
|
||||
if (i == 0) {
|
||||
previousValue = value;
|
||||
} else {
|
||||
if (i != 0) {
|
||||
ASSERT_FALSE(value != previousValue) << "received duplicate value: " << value
|
||||
<< " when variable update rate is true";
|
||||
previousValue = value;
|
||||
}
|
||||
previousValue = value;
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user