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

Commit 6d61e1e4 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Remove timeout to ensure test passes reliably am: 6fe79de9 am: 8ea7236a...

Remove timeout to ensure test passes reliably am: 6fe79de9 am: 8ea7236a am: 3a5d8a31 am: 386df8a1

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2500515



Change-Id: I93d39fdebab70fc86309b5d7ef6428e7147492fa
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 74dd14e7 386df8a1
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -198,7 +198,6 @@ TEST(BluetoothLegacyLruCacheTest, LegacyLruCacheClearTest) {
}

TEST(BluetoothLegacyLruCacheTest, LegacyLruCachePressureTest) {
  auto started = std::chrono::high_resolution_clock::now();
  int max_size = 0xFFFFF;  // 2^20 = 1M
  LegacyLruCache<int, int> cache(static_cast<size_t>(max_size), "testing");

@@ -228,15 +227,6 @@ TEST(BluetoothLegacyLruCacheTest, LegacyLruCachePressureTest) {
    EXPECT_TRUE(cache.Remove(key));
  }
  EXPECT_EQ(cache.Size(), 0);

  // test execution time
  auto done = std::chrono::high_resolution_clock::now();
  int execution_time =
      std::chrono::duration_cast<std::chrono::milliseconds>(done - started)
          .count();
  // always around 750ms on flame. 1400 ms on crosshatch, 6800 ms on presubmit
  // Shouldn't be more than 10000ms
  EXPECT_LT(execution_time, 10000);
}

TEST(BluetoothLegacyLruCacheTest, BluetoothLruMultiThreadPressureTest) {