diff options
author | Kegsay <kegan@matrix.org> | 2020-06-23 13:15:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 13:15:15 +0100 |
commit | 914f6cadceebad98ed2a3f134437531a1426fc30 (patch) | |
tree | b28669455d59bef1a95e78a90180bc3b84e92735 /federationapi/routing/send_test.go | |
parent | 4220a374cabbc1a885d9c79037fcf42e14fef677 (diff) |
Add /send restrictions and return correct error codes (#1156)
* Add /send restrictions and return correct error codes
- Max 50 PDUs / 100 EDUs
- Fail the transaction when PDUs contain bad JSON
* Update whitelist
* Unbreak test
* Linting
Diffstat (limited to 'federationapi/routing/send_test.go')
-rw-r--r-- | federationapi/routing/send_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/routing/send_test.go b/federationapi/routing/send_test.go index 6e6606c8..e512f4b4 100644 --- a/federationapi/routing/send_test.go +++ b/federationapi/routing/send_test.go @@ -337,7 +337,7 @@ func mustCreateTransaction(rsAPI api.RoomserverInternalAPI, fedClient txnFederat func mustProcessTransaction(t *testing.T, txn *txnReq, pdusWithErrors []string) { res, err := txn.processTransaction() if err != nil { - t.Errorf("txn.processTransaction returned an error: %s", err) + t.Errorf("txn.processTransaction returned an error: %v", err) return } if len(res.PDUs) != len(txn.PDUs) { |