Skip to content

Commit

Permalink
update future size
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jan 27, 2023
1 parent d8d77f5 commit f9b18b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions crates/symbolicator-service/src/services/cacher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,12 @@ mod tests {
)
.unwrap();
let cacher = Cacher::new(cache, Default::default());

let fut = cacher.compute_memoized(TestCacheItem::new("foo"));
let key = CacheKey {
cache_key: "foo".into(),
};
let fut = cacher.compute_memoized(TestCacheItem::new(), key);
let size = dbg!(std::mem::size_of_val(&fut));
assert!(size > 800 && size < 850);
assert!(size > 750 && size < 800);
}

/// This test asserts that the cache is served from outdated cache files, and that a computation
Expand Down

0 comments on commit f9b18b4

Please sign in to comment.