diff options
author | realtyem <realtyem@gmail.com> | 2022-12-01 06:38:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 07:38:27 -0500 |
commit | 854a6884d81c95297bf93badcddc00a4cab93418 (patch) | |
tree | a32b5c54f84ce615031e92ef1a0d997e0209caff /tests/push | |
parent | Cite launchpad bug that says ubuntu's pkgs are old (#14517) (diff) | |
download | synapse-854a6884d81c95297bf93badcddc00a4cab93418.tar.xz |
Modernize unit tests configuration settings for workers. (#14568)
Use the newer foo_instances configuration instead of the deprecated flags to enable specific features (e.g. start_pushers).
Diffstat (limited to 'tests/push')
-rw-r--r-- | tests/push/test_email.py | 1 | ||||
-rw-r--r-- | tests/push/test_http.py | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/tests/push/test_email.py b/tests/push/test_email.py index fd14568f55..57b2f0536e 100644 --- a/tests/push/test_email.py +++ b/tests/push/test_email.py @@ -66,7 +66,6 @@ class EmailPusherTests(HomeserverTestCase): "riot_base_url": None, } config["public_baseurl"] = "http://aaa" - config["start_pushers"] = True hs = self.setup_test_homeserver(config=config) diff --git a/tests/push/test_http.py b/tests/push/test_http.py index b383b8401f..afaafe79aa 100644 --- a/tests/push/test_http.py +++ b/tests/push/test_http.py @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from typing import Any, Dict, List, Optional, Tuple +from typing import List, Optional, Tuple from unittest.mock import Mock from twisted.internet.defer import Deferred @@ -41,11 +41,6 @@ class HTTPPusherTests(HomeserverTestCase): user_id = True hijack_auth = False - def default_config(self) -> Dict[str, Any]: - config = super().default_config() - config["start_pushers"] = True - return config - def make_homeserver(self, reactor: MemoryReactor, clock: Clock) -> HomeServer: self.push_attempts: List[Tuple[Deferred, str, dict]] = [] |