diff options
author | Erik Johnston <erik@matrix.org> | 2021-04-29 16:41:04 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-04-29 16:41:04 +0100 |
commit | 4a3a9597f500fe62a4ab4dd2af966ee704fbea02 (patch) | |
tree | ba0f7c76e176dc7c427798cca2fabc27f7af57e5 /tests/storage/test__base.py | |
parent | Newsfile (diff) | |
parent | Merge tag 'v1.33.0rc2' into develop (diff) | |
download | synapse-4a3a9597f500fe62a4ab4dd2af966ee704fbea02.tar.xz |
Merge remote-tracking branch 'origin/develop' into erikj/test_send
Diffstat (limited to 'tests/storage/test__base.py')
-rw-r--r-- | tests/storage/test__base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/storage/test__base.py b/tests/storage/test__base.py index 6339a43f0c..200b9198f9 100644 --- a/tests/storage/test__base.py +++ b/tests/storage/test__base.py @@ -13,6 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import secrets from tests import unittest @@ -21,7 +22,7 @@ class UpsertManyTests(unittest.HomeserverTestCase): def prepare(self, reactor, clock, hs): self.storage = hs.get_datastore() - self.table_name = "table_" + hs.get_secrets().token_hex(6) + self.table_name = "table_" + secrets.token_hex(6) self.get_success( self.storage.db_pool.runInteraction( "create", |