This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3530 from matrix-org/erikj/stream_cache
Don't return unknown entities in get_entities_changed
- Loading branch information
Showing
3 changed files
with
4 additions
and
11 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,8 +141,8 @@ def test_get_entities_changed(self): | |
) | ||
|
||
# Query all the entries mid-way through the stream, but include one | ||
# that doesn't exist in it. We should get back the one that doesn't | ||
# exist, too. | ||
# that doesn't exist in it. We shouldn't get back the one that doesn't | ||
# exist. | ||
self.assertEqual( | ||
cache.get_entities_changed( | ||
[ | ||
|
@@ -153,7 +153,7 @@ def test_get_entities_changed(self): | |
], | ||
stream_pos=2, | ||
), | ||
set(["[email protected]", "[email protected]", "[email protected]"]), | ||
set(["[email protected]", "[email protected]"]), | ||
) | ||
|
||
# Query all the entries, but before the first known point. We will get | ||
|