Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5e75c19 authored by Myles Watson's avatar Myles Watson
Browse files

Increase timing in AlarmTest test_set_short_short

When both alarms fire before the conditions are checked, the test
fails.  Reduce the failure rate.

Bug: 298724810
Test: atest AlarmTest#test_set_short_short
Change-Id: I38a668b5e171b5f5e5822ec186343d7533677dd9
parent 7bd7ab11
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ TEST_F(AlarmTest, test_set_short_short) {
                       alarm_new("alarm_test.test_set_short_short_1")};

  alarm_set(alarm[0], 10, cb, NULL);
  alarm_set(alarm[1], 20, cb, NULL);
  alarm_set(alarm[1], 200, cb, NULL);

  EXPECT_EQ(cb_counter, 0);
  EXPECT_TRUE(is_wake_lock_acquired);