OSDN Git Service

Fixed test_periodic_unregister_processing_queue unit test
authorPavlin Radoslavov <pavlin@google.com>
Wed, 4 May 2016 06:00:15 +0000 (23:00 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Wed, 4 May 2016 23:41:43 +0000 (23:41 +0000)
Removed a copy-and-paste check in the
test_periodic_unregister_processing_queue unit test.
The removed check adds little value - it has time-dependency,
and is not robust.

Bug: 26982349
Change-Id: I4adb948713b9946b5eb821d6fe52b7ada1400182

osi/test/alarm_test.cpp

index e4436aa..4ef5805 100644 (file)
@@ -415,7 +415,6 @@ TEST_F(AlarmTest, test_periodic_unregister_processing_queue) {
   for (int i = 0; i < 5; i++) {
     alarm_set_on_queue(alarms[i], 20 + i, cb, INT_TO_PTR(i), queue);
   }
-  EXPECT_EQ(cb_counter, 0);
   EXPECT_TRUE(WakeLockHeld());
 
   for (int i = 1; i <= 20; i++) {