Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some test failures when frozen_dicts are enabled #6642

Merged
merged 6 commits into from Jan 6, 2020

Conversation

@richvdh
Copy link
Member

richvdh commented Jan 6, 2020

Fixes #4026

richvdh added 2 commits Jan 6, 2020
@richvdh richvdh requested a review from matrix-org/synapse-core Jan 6, 2020
initial_state[(EventTypes.PowerLevels, "")] = new_power_levels

# Assign this power level to the requester
new_power_levels = {k: v for k, v in power_levels.items() if k != "users"}

This comment has been minimized.

Copy link
@erikjohnston

erikjohnston Jan 6, 2020

Member

A comment to say that we're working around the fact this could be a frozendict would be good, I got quite confused.

@@ -0,0 +1 @@
Fix test failures when frozen_dicts are enabled.

This comment has been minimized.

Copy link
@erikjohnston

erikjohnston Jan 6, 2020

Member

Won't these effect real world usage too?

This comment has been minimized.

Copy link
@richvdh

richvdh Jan 6, 2020

Author Member

affect ;-p

yeah, I guess so.

@richvdh richvdh merged commit ba897a7 into develop Jan 6, 2020
22 checks passed
22 checks passed
buildkite/synapse Build #6337 passed (18 minutes, 35 seconds)
Details
buildkite/synapse/check-sample-config Passed (1 minute, 25 seconds)
Details
buildkite/synapse/check-style Passed (1 minute, 53 seconds)
Details
buildkite/synapse/isort Passed (43 seconds)
Details
buildkite/synapse/mypy Passed (49 seconds)
Details
buildkite/synapse/newspaper-newsfile Passed (13 seconds)
Details
buildkite/synapse/packaging Passed (40 seconds)
Details
buildkite/synapse/pipeline Passed (10 seconds)
Details
buildkite/synapse/python-3-dot-5-slash-postgres-9-dot-5 Passed (9 minutes, 58 seconds)
Details
buildkite/synapse/python-3-dot-5-slash-sqlite Passed (6 minutes)
Details
buildkite/synapse/python-3-dot-5-slash-sqlite-slash-old-deps Passed (7 minutes, 32 seconds)
Details
buildkite/synapse/python-3-dot-6-slash-sqlite Passed (5 minutes, 53 seconds)
Details
buildkite/synapse/python-3-dot-7-slash-postgres-11 Passed (10 minutes, 9 seconds)
Details
buildkite/synapse/python-3-dot-7-slash-postgres-9-dot-5 Passed (9 minutes, 52 seconds)
Details
buildkite/synapse/python-3-dot-7-slash-sqlite Passed (6 minutes, 30 seconds)
Details
buildkite/synapse/synapse-port-db-slash-python-3-dot-5-slash-postgres-9-dot-5 Passed (1 minute, 17 seconds)
Details
buildkite/synapse/synapse-port-db-slash-python-3-dot-7-slash-postgres-11 Passed (1 minute, 29 seconds)
Details
buildkite/synapse/sytest-python-3-dot-5-slash-postgres-9-dot-6-slash-monolith Passed (11 minutes, 12 seconds)
Details
buildkite/synapse/sytest-python-3-dot-5-slash-postgres-9-dot-6-slash-workers Passed (14 minutes, 25 seconds)
Details
buildkite/synapse/sytest-python-3-dot-5-slash-sqlite-slash-monolith Passed (11 minutes, 36 seconds)
Details
buildkite/synapse/sytest-python-3-dot-7-slash-postgres-11-slash-monolith Passed (9 minutes, 55 seconds)
Details
buildkite/synapse/sytest-python-3-dot-7-slash-postgres-11-slash-workers Passed (10 minutes, 10 seconds)
Details
@richvdh richvdh deleted the rav/fix_frozen_events branch Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.