-
Notifications
You must be signed in to change notification settings - Fork 66
Stop testing unspecced POST /send #850
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
Merged
MadLittleMods
merged 8 commits into
matrix-org:main
from
tulir:tulir/delete-unspecced-send
Mar 18, 2026
+21
−17
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
172d3f1
Stop testing unspecced POST /send
tulir c67b4b2
Update tests/csapi/invalid_test.go
tulir ce4bdcd
Disable gotestfmt
tulir d3f58e7
Fix format int call
tulir 000e60f
Revert "Disable gotestfmt"
tulir 02f111c
Add helper for generating unique transaction IDs
tulir 5de6121
Add doc for GetTxnID
tulir 8ee78ab
Remove sytest comment
tulir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package helpers | ||
|
|
||
| import ( | ||
| "fmt" | ||
| "sync/atomic" | ||
| "time" | ||
| ) | ||
|
|
||
| var txnCounter atomic.Int64 | ||
| var start = time.Now().Unix() | ||
|
|
||
| // GetTxnID generates a unique transaction ID for use with endpoints like /send/{eventType/{txnId}. | ||
| // The prefix is only for debugging purposes. | ||
| func GetTxnID(prefix string) (txnID string) { | ||
| return fmt.Sprintf("%s-%d-%d", prefix, start, txnCounter.Add(1)) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.