Skip to content

Commit

Permalink
fixup! Coalesce reads via flush
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowYarker committed Mar 29, 2024
1 parent f1fe435 commit b1b503c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/workerd/io/actor-cache-test.c++
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,8 @@ KJ_TEST("ActorCache list() with limit") {

// Stuff after the last key is not in cache.
(void)expectUncached(test.get("fooa"));
// Return our uncached get.
mockStorage->expectCall("get", ws).withParams(CAPNP(key = "fooa")).thenReturn(CAPNP());

// Listing the same range again, with the same limit or lower, is fully cached.
KJ_ASSERT(expectCached(test.list("bar", "qux", 3)) ==
Expand Down Expand Up @@ -1783,9 +1785,6 @@ KJ_TEST("ActorCache list() with limit") {
// Cached if we try it again though.
KJ_ASSERT(expectCached(test.list("bar", "qux", 4)) ==
kvs({{"bar", "456"}, {"baz", "789"}, {"foo", "123"}, {"garply", "54321"}}));

// Return our uncached get from earlier.
mockStorage->expectCall("get", ws).withParams(CAPNP(key = "fooa")).thenReturn(CAPNP());
}

KJ_TEST("ActorCache list() with limit around negative entries") {
Expand Down

0 comments on commit b1b503c

Please sign in to comment.