Skip to content

Commit

Permalink
fix([test]): fix new CacheAccessResult error
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukiMoriarty committed Jun 19, 2024
1 parent 02900e6 commit 8426b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ TEST(Cache, cache_LRU_single_port_test)
ASSERT_EQ(2, cache._get_cache_evited_policy_index(0));

// Test `try_cache_garbage_collection`
ASSERT_EQ(CacheAccessResult(true, cache_3), cache.try_cache_garbage_collection(cargo_5));
ASSERT_EQ(CacheAccessResult(true, cache_3, cargo_3), cache.try_cache_garbage_collection(cargo_5));

// Test `clear_cargo_from_cache`
ASSERT_EQ(true, cache.clear_cargo_from_cache(cargo_3, cache_3));
Expand Down Expand Up @@ -241,7 +241,7 @@ TEST(Cache, cache_FIFO_single_port_test)
ASSERT_EQ(2, cache._get_cache_evited_policy_index(0));

// Test `try_cache_garbage_collection`
ASSERT_EQ(CacheAccessResult(true, cache_3), cache.try_cache_garbage_collection(cargo_5));
ASSERT_EQ(CacheAccessResult(true, cache_3, cargo_3), cache.try_cache_garbage_collection(cargo_5));

// Test `clear_cargo_from_cache`
ASSERT_EQ(true, cache.clear_cargo_from_cache(cargo_3, cache_3));
Expand Down

0 comments on commit 8426b6d

Please sign in to comment.