Patch defer.inlineCallbacks to check logcontexts in tests (#4205)

This commit is contained in:
Richard van der Hoff 2018-12-04 11:30:32 +01:00 committed by GitHub
parent a077e710a3
commit 48972ce9d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 99 additions and 3 deletions

View file

@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
# Copyright 2018 New Vector Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -15,7 +16,9 @@
from twisted.trial import util
from tests import utils
import tests.patch_inline_callbacks
# attempt to do the patch before we load any synapse code
tests.patch_inline_callbacks.do_patch()
util.DEFAULT_TIMEOUT_DURATION = 10
utils.setupdb()