Add t.Helper calls

Co-authored-by: kegsay <kegan@matrix.org>
This commit is contained in:
David Robertson 2023-07-28 18:37:52 +01:00 committed by GitHub
parent e64de5c771
commit 58788287d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,6 +361,7 @@ func TestTxnIDWaiter_PublishUpToNID_MultipleRooms(t *testing.T) {
}
func assertDelayed(t *testing.T, published []publishArg) {
t.Helper()
for _, p := range published {
if !p.delayed {
t.Errorf("published arg with NID %d was not delayed, but we expected it to be", p.update.(*caches.RoomEventUpdate).EventData.NID)
@ -369,6 +370,7 @@ func assertDelayed(t *testing.T, published []publishArg) {
}
func assertNIDs(t *testing.T, published []publishArg, expectedNIDs []int64) {
t.Helper()
if len(published) != len(expectedNIDs) {
t.Errorf("Got %d nids, but expected %d", len(published), len(expectedNIDs))
}