forked from Silverfish/proton-bridge
GODT-2223(test): Fix array access off-by-one in test code
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user