Skip to content

Commit 388b444

Browse files
authored
fix(hc): Add missing using (#54188)
This using is required so that the transaction is opened to the correct database when running in split-db mode.
1 parent 5138e36 commit 388b444

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/sentry/mediators/test_mediator.py

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ def call(self):
137137

138138
def test_automatic_transaction(self):
139139
class TransactionMediator(Mediator):
140+
using = router.db_for_write(User)
141+
140142
def call(self):
141143
User.objects.create(username="beep")
142144
raise RuntimeError()

0 commit comments

Comments
 (0)