mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Update sendrelay_test todo contexts to background
This commit is contained in:
parent
0e4d2593eb
commit
c476e71ec3
|
|
@ -197,10 +197,10 @@ func TestUniqueTransactionStoredInDatabase(t *testing.T) {
|
|||
|
||||
response := routing.SendTransactionToRelay(
|
||||
httpReq, &request, relayAPI, txn.TransactionID, *userID)
|
||||
transaction, _, err := db.GetTransaction(context.TODO(), *userID)
|
||||
transaction, _, err := db.GetTransaction(context.Background(), *userID)
|
||||
assert.NoError(t, err, "Failed retrieving transaction")
|
||||
|
||||
transactionCount, err := db.GetTransactionCount(context.TODO(), *userID)
|
||||
transactionCount, err := db.GetTransactionCount(context.Background(), *userID)
|
||||
assert.NoError(t, err, "Failed retrieving transaction count")
|
||||
|
||||
assert.Equal(t, 200, response.Code)
|
||||
|
|
|
|||
Loading…
Reference in a new issue