mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 08:06:59 +00:00
Clear separation of different message IDs in integration tests
This commit is contained in:
@ -23,7 +23,6 @@ import (
|
||||
"io"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
messageUtils "github.com/ProtonMail/proton-bridge/pkg/message"
|
||||
"github.com/ProtonMail/proton-bridge/pkg/pmapi"
|
||||
@ -127,14 +126,6 @@ func buildMessageBody(message *pmapi.Message, body *bytes.Buffer) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (ctl *Controller) GetMessageID(username, messageIndex string) string {
|
||||
idx, err := strconv.Atoi(messageIndex)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("message index %s not found", messageIndex))
|
||||
}
|
||||
return ctl.messageIDsByUsername[username][idx-1]
|
||||
}
|
||||
|
||||
func (ctl *Controller) GetMessages(username, labelID string) ([]*pmapi.Message, error) {
|
||||
client, ok := ctl.pmapiByUsername[username]
|
||||
if !ok {
|
||||
|
||||
Reference in New Issue
Block a user