Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Update tests to use the new room stats bg update
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jul 30, 2020
1 parent 84085c9 commit 716d8f6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/handlers/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _add_background_updates(self):
self.store.db.simple_insert(
"background_updates",
{
"update_name": "populate_stats_process_rooms",
"update_name": "populate_stats_process_rooms_2",
"progress_json": "{}",
"depends_on": "populate_stats_prepare",
},
Expand All @@ -66,7 +66,7 @@ def _add_background_updates(self):
{
"update_name": "populate_stats_process_users",
"progress_json": "{}",
"depends_on": "populate_stats_process_rooms",
"depends_on": "populate_stats_process_rooms_2",
},
)
)
Expand Down Expand Up @@ -219,7 +219,10 @@ def test_initial_earliest_token(self):
self.get_success(
self.store.db.simple_insert(
"background_updates",
{"update_name": "populate_stats_process_rooms", "progress_json": "{}"},
{
"update_name": "populate_stats_process_rooms_2",
"progress_json": "{}",
},
)
)
self.get_success(
Expand All @@ -228,7 +231,7 @@ def test_initial_earliest_token(self):
{
"update_name": "populate_stats_cleanup",
"progress_json": "{}",
"depends_on": "populate_stats_process_rooms",
"depends_on": "populate_stats_process_rooms_2",
},
)
)
Expand Down Expand Up @@ -725,7 +728,7 @@ def test_incomplete_stats(self):
self.store.db.simple_insert(
"background_updates",
{
"update_name": "populate_stats_process_rooms",
"update_name": "populate_stats_process_rooms_2",
"progress_json": "{}",
"depends_on": "populate_stats_prepare",
},
Expand All @@ -737,7 +740,7 @@ def test_incomplete_stats(self):
{
"update_name": "populate_stats_process_users",
"progress_json": "{}",
"depends_on": "populate_stats_process_rooms",
"depends_on": "populate_stats_process_rooms_2",
},
)
)
Expand Down

0 comments on commit 716d8f6

Please sign in to comment.