GODT-2223(test): Fix array access off-by-one in test code

This commit is contained in:
James Houlahan
2023-01-25 10:35:10 +00:00
committed by Jakub
parent 160489a771
commit e7dea0a77f

View File

@ -115,7 +115,7 @@ func TestBridge_User_BadMessage_NoBadEvent(t *testing.T) {
// If bridge attempts to sync the new messages, it should get a BadRequest error.
s.AddStatusHook(func(req *http.Request) (int, bool) {
if len(messageIDs) < 2 {
if len(messageIDs) < 3 {
return 0, false
}