Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
a767f06e
Unverified
Commit
a767f06e
authored
7 years ago
by
Richard van der Hoff
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2765 from matrix-org/rav/fix_room_uts
Fix flaky test_rooms UTs
parents
cb66a2d3
f8fa5ae4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/rest/client/v1/test_rooms.py
+0
-3
0 additions, 3 deletions
tests/rest/client/v1/test_rooms.py
tests/unittest.py
+5
-1
5 additions, 1 deletion
tests/unittest.py
tests/utils.py
+4
-0
4 additions, 0 deletions
tests/utils.py
with
9 additions
and
4 deletions
tests/rest/client/v1/test_rooms.py
+
0
−
3
View file @
a767f06e
...
...
@@ -515,9 +515,6 @@ class RoomsCreateTestCase(RestTestCase):
synapse
.
rest
.
client
.
v1
.
room
.
register_servlets
(
hs
,
self
.
mock_resource
)
def
tearDown
(
self
):
pass
@defer.inlineCallbacks
def
test_post_room_no_keys
(
self
):
# POST with no config keys, expect new room id
...
...
This diff is collapsed.
Click to expand it.
tests/unittest.py
+
5
−
1
View file @
a767f06e
...
...
@@ -12,7 +12,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.
import
twisted
from
twisted.trial
import
unittest
import
logging
...
...
@@ -65,6 +65,10 @@ class TestCase(unittest.TestCase):
@around
(
self
)
def
setUp
(
orig
):
# enable debugging of delayed calls - this means that we get a
# traceback when a unit test exits leaving things on the reactor.
twisted
.
internet
.
base
.
DelayedCall
.
debug
=
True
old_level
=
logging
.
getLogger
().
level
if
old_level
!=
level
:
...
...
This diff is collapsed.
Click to expand it.
tests/utils.py
+
4
−
0
View file @
a767f06e
...
...
@@ -58,6 +58,10 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs):
config
.
email_enable_notifs
=
False
config
.
block_non_admin_invites
=
False
# disable user directory updates, because they get done in the
# background, which upsets the test runner.
config
.
update_user_directory
=
False
config
.
use_frozen_dicts
=
True
config
.
database_config
=
{
"
name
"
:
"
sqlite3
"
}
config
.
ldap_enabled
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment